From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1168 invoked from network); 17 May 1999 04:08:27 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 17 May 1999 04:08:27 -0000 Received: (qmail 8964 invoked by alias); 17 May 1999 04:08:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6297 Received: (qmail 8957 invoked from network); 17 May 1999 04:08:03 -0000 Date: Mon, 17 May 1999 00:08:02 -0400 From: Clint Adams To: zsh-workers@sunsite.auc.dk Subject: ERR_EXIT behavior inconsistent with other shells Message-ID: <19990517000802.A27319@dman.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i 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.