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

'for' brokenness?



much strangeness here...

some uses of for are just exiting quietly, instead of the desired
behavior:

justin@caffeine:(~)% for i in *
justin@caffeine:(~)% 

shouldn't that give me a 2nd level prompt at which I can enter my
do..list..done commands? instead I see exactly what I pasted above. It
just exits w/o doing anything. most forms of 'for' are doing this, but
'foreach' is working. wtf!?

justin@caffeine:(~/foo)% for i [ in * ]
justin@caffeine:(~/foo)% for i in *
justin@caffeine:(~/foo)% for i ( * )   
justin@caffeine:(~/foo)% foreach i ( * )
> do
> echo $i
> done 
1
2
3
4
justin@caffeine:(~/foo)% 
justin@caffeine:(~/foo)% echo $VERSION 
zsh 2.5.0

any ideas?

-Justin



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