zsh-users
 help / color / mirror / code / Atom feed
* Strange behavior with "for i in .."
@ 2011-09-23 10:29 Volodya Khomchak
  2011-09-23 10:41 ` Mikael Magnusson
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Volodya Khomchak @ 2011-09-23 10:29 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-09-23 11:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-23 10:29 Strange behavior with "for i in .." Volodya Khomchak
2011-09-23 10:41 ` Mikael Magnusson
2011-09-23 10:51   ` Volodya Khomchak
2011-09-23 10:41 ` Peter Stephenson
2011-09-23 10:43 ` Oliver Kiddle

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).