zsh-workers
 help / color / mirror / code / Atom feed
* exit trap and list pipelines
@ 2016-11-10  2:36 Anthony Heading
  2016-11-10  5:19 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Anthony Heading @ 2016-11-10  2:36 UTC (permalink / raw)
  To: zsh-workers

Hi,

Printing '6' here seems wrong?  I think it didn't some years back.

% zsh -c 'trap "echo hello" EXIT; { :; } | wc -c'
6
hello

% bash -c 'trap "echo hello" EXIT; { :; } | wc -c'
0
hello

Anthony


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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-10  2:36 exit trap and list pipelines Anthony Heading
2016-11-10  5:19 ` Bart Schaefer
2016-11-10  9:57   ` 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).