Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Stop script if one command returns != 0
- X-seq: zsh-users 18799
- From: Florian Lindner <mailinglists@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Stop script if one command returns != 0
- Date: Wed, 14 May 2014 16:01:19 +0200
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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