Hi,

I am wondering what the reasoning might be for this seeming
inconsistence.

> i=08
> if [ $i -lt 9 ] ; then echo ok; fi
ok
> if [ $((i)) -lt 9 ] ; then echo ok; fi
bash: 08: value too great for base (error token is "08")

Why is 08 not tried to be interpreted as octal when *numerically* compared
using test?


Reply via email to