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

Re: forbidden variable in for loop.



On 19/12/12 03:58 PM, Danek Duvall wrote:
Ray Andrews wrote:

   for a in *; do echo $a; done

All fine. but:

   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?
You probably did a "typeset -E i" at some point in the past.  "unset i"
should get it working again.

Danek

That did it Danek, thanks very much. I have no idea how that happened, but I guess it did.



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