e !(8)
pattern to exclude and simply do a no-op for the extra * character?
--
Regards,
INIAN VASANTH P
( 100 < 3 )) ]] && echo ok'
+ [[ 100 < 3 ]]
+ echo ok
bash -cx '[[ $(( 100 < 3 )) ]] && echo ok'
+ bash -cx '[[ $(( 100 < 3 )) ]] && echo ok'
+ [[ -n 0 ]]
+ echo ok
ok
bash -cx '[[ $(( 100 < 300 )) ]] && echo ok'
+ bash -cx '[[ $(( 100 < 300 )) ]] && echo ok'
+ [[ -n 1 ]]
+ echo ok
ok
--
Regards,
INIAN VASANTH P
Greg Wooledge wrote:
> On Tue, May 19, 2020 at 06:10:30PM +0530, Inian Vasanth wrote:
> > The behavior of arithmetic context operator $((..)) inside [[..]] is not
> so
> > well defined.
>
> It's simply a substitution. The $(( )) is evaluated, and the result
> is pl