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

Bug with exit status of zsh -c



This recently bit me in a procmail recipe.

	zsh -fc '! print several words here | fgrep -i -s -e words'

returns an exit status of zero.  The leading ! should cause it to return a
nonzero exit status.  By contrast,

	bash -fc '! print several words here | fgrep -i -s -e words'

correctly exits with status 1.

This bug affects zsh 3.0.x, 3.1.x, 4.0.x.



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