From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21398 invoked by alias); 14 May 2014 14:07:19 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18799 Received: (qmail 29547 invoked from network); 14 May 2014 14:07:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,SPF_HELO_PASS autolearn=ham version=3.3.2 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 14 May 2014 16:01:19 +0200 From: Florian Lindner To: zsh-users@zsh.org Subject: Stop script if one command returns =?UTF-8?Q?!=3D=20=30?= Message-ID: X-Sender: mailinglists@xgm.de User-Agent: Roundcube Webmail/1.0.1 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