Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

exit trap and list pipelines



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



Messages sorted by: Reverse Date, Date, Thread, Author