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

ERR_EXIT behavior inconsistent with other shells



ARGV0=sh zsh -fexc 'testerrexit() { return 1; }; false || echo simplecommand; testerrexit || echo function'; echo $?

does this

+ false
+ echo simplecommand
simplecommand
+ testerrexit
+ return 1
1

Other shells seems to do this

ARGV0=sh ksh -fexc 'testerrexit() { return 1; }; false || echo simplecommand; te
sterrexit || echo function'; echo $?

+ false
+ echo simplecommand
simplecommand
+ testerrexit
+ echo function
function
0


zsh should conform at least in emulation modes.



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