Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: strange arithmetic



Louis-David Mitterrand wrote:
> 
> (using 3.0.5)
> 
> % i=0;while [[ $[++i] < 900 ]];do;echo $i;done
> % 1
> % 2
> [...]
> % 90
> 
> 90 ?? I asked for 900 and it stops at 90. On the other hand the
> following:

It happens here with 3.1.2 as well.  I can't see any logical reason...

Chris C



Messages sorted by: Reverse Date, Date, Thread, Author