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

Re: forbidden variable in for loop.



Ray Andrews wrote:
>   for i in *; do echo $i; done
>
> Gives me a list of zeros. Followed by "zsh: bad floating point constant"
>
> It works fine for any letter of the alphabet so far tested except 'i'.  For the
> life of me I can't guess what it is that makes 'i' special. Any thoughts?

  print ${(t)i}

I bet there's an `integer in there for `i' but not for `a'.

Regards, Frank



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