zsh-users
 help / color / mirror / code / Atom feed
* 'for' brokenness?
@ 1996-08-05 15:04 Justin Sheehy
  0 siblings, 0 replies; only message in thread
From: Justin Sheehy @ 1996-08-05 15:04 UTC (permalink / raw)
  To: zsh-users

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-08-05 15:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-08-05 15:04 'for' brokenness? Justin Sheehy

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).