Bash extended glob - Negation

2021-04-30 Thread Inian Vasanth
e !(8) pattern to exclude and simply do a no-op for the extra * character? -- Regards, INIAN VASANTH P

behavior of arithmetic evaluation operator inside extended test operator

2020-05-19 Thread Inian Vasanth
( 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

Re: behavior of arithmetic evaluation operator inside extended test operator

2020-05-19 Thread Inian Vasanth
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