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

Re: do I win the "most pointless use of ZSH" award? ;)



"Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:

[...]

> > 	for (( p=0.0, q=0.0, i=0 ; p*p+q*q < 4 && i < 32 ; i++));do

I couldn't get this to work for a while.  It turned out one of my
initialization scripts was setting i to an absolute pathname:

        zsh% i=/foo; for ((i=0; i<10; i++)) echo $i
        zsh: bad math expression: operand expected at `/foo'

Is this a bug or a feature that I'm entirely missing?

[...]



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