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

Strange behavior with "for i in .."



Hi,

I faced with strange behavior with "for i in ..".
So the problem is next:
  # for i in /etc/profile.d/*.sh;do echo $i;done
  # zsh: bad math expression: operand expected at `/etc/profi...'
But if I change "i" to "file" it would work:
  # for file in /etc/profile.d/*.sh;do echo $file;done
  # /etc/profile.d/1.sh
  # /etc/profile.d/2.sh

zsh --version
zsh 4.3.10 (x86_64)

So what is going on here ?

Thanks,
Volodya



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