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

Stop script if one command returns != 0



Hello,

I have a script that I source with a number of commands and exports. Is there a way to tell zsh (or even in a portable way to sh) to stop execution of this script if any of the commands returns a return code other than zero?

Thanks,

Florian



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