zsh-workers
 help / color / mirror / code / Atom feed
* set -x in functions
@ 2008-06-09 11:32 Stephane Chazelas
  2008-06-10 10:07 ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Stephane Chazelas @ 2008-06-09 11:32 UTC (permalink / raw)
  To: Zsh hackers list

Hiya,

$ zsh -xc '{ echo a; } 2> /dev/null'
a

$ zsh -xc '{ { echo a; } 2> /dev/null; }'
a

$ zsh -xc 'f() { { echo a; } 2> /dev/null; }; f'
+ f
+ echo a
a

$ zsh -xc 'f() { echo a; } 2> /dev/null; f'
+ f
+ echo a
a

$ zsh -xc 'f() { eval "{ echo a; }" 2> /dev/null; }; f'
+ f
+ eval '{ echo a; }'
+ echo a
a


Why is "+ echo a" displayed in the last 3 cases?


None of the other shells I tried do.

-- 
Stéphane


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

end of thread, other threads:[~2008-06-10 10:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-09 11:32 set -x in functions Stephane Chazelas
2008-06-10 10:07 ` Peter Stephenson

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