zsh-workers
 help / color / mirror / code / Atom feed
* The (e) glob flag and 'return'
@ 2003-09-11  9:17 Bart Schaefer
  0 siblings, 0 replies; only message in thread
From: Bart Schaefer @ 2003-09-11  9:17 UTC (permalink / raw)
  To: zsh-workers

Consider this:

schaefer<503> print *.*(e['echo $REPLY'])
config.log
config.status
config.h
stamp-h.in
config.modules
config.cache
config.h.in
config.cache config.h config.h.in config.log config.modules config.status stamp-h.in
schaefer<504> 

This strikes me as odd:

schaefer<504> print *.*(e['echo $REPLY; return'])
config.log
config.cache config.h config.h.in config.log config.modules config.status stamp-h.in
schaefer<505> 

I would have expected that either the two were the same, or that the latter
would pass only config.log to "print".  How does "return" manage to cause
the subsequent evaluations to be no-ops but not errors?


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

only message in thread, other threads:[~2003-09-11  9:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-11  9:17 The (e) glob flag and 'return' Bart Schaefer

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