Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
set -x in functions
- X-seq: zsh-workers 25141
- From: Stephane Chazelas <Stephane_Chazelas@xxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: set -x in functions
- Date: Mon, 9 Jun 2008 12:32:22 +0100
- Mail-followup-to: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author