From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27716 invoked from network); 2 Jan 2004 01:33:16 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Jan 2004 01:33:16 -0000 Received: (qmail 20030 invoked by alias); 2 Jan 2004 01:32:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6970 Received: (qmail 19919 invoked from network); 2 Jan 2004 01:32:30 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 2 Jan 2004 01:32:30 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [130.95.128.56] by sunsite.dk (MessageWall 1.0.8) with SMTP; 2 Jan 2004 1:32:29 -0000 Received: from 127.0.0.1 (localhost [127.0.0.1]) by dummy.domain.name (Postfix) with SMTP id 44D553665B8 for ; Fri, 2 Jan 2004 09:32:28 +0800 (WST) Received: from gulag.gu.uwa.edu.au (gulag.guild.uwa.edu.au [130.95.100.5]) by asclepius.uwa.edu.au (Postfix) with ESMTP id 3BDA83664F2 for ; Fri, 2 Jan 2004 09:32:28 +0800 (WST) Received: from gulag.gu.uwa.edu.au (devenish@localhost [127.0.0.1]) by gulag.gu.uwa.edu.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i021WRoJ005068 for ; Fri, 2 Jan 2004 09:32:27 +0800 Received: (from devenish@localhost) by gulag.gu.uwa.edu.au (8.12.3/8.12.3/Debian-6.6) id i021WQOX005066 for zsh-users@sunsite.dk; Fri, 2 Jan 2004 09:32:26 +0800 Date: Fri, 2 Jan 2004 09:32:26 +0800 From: James Devenish To: zsh-users@sunsite.dk Subject: Re: Possible bug in zsh Message-ID: <20040102013226.GB4498@mail.guild.uwa.edu.au> Mail-Followup-To: zsh-users@sunsite.dk References: <20031229080222.GA75453@quark.localdomain> <20031229092122.GA23732@binome.blorf.net> <20040101233856.GA13263@blorf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040101233856.GA13263@blorf.net> User-Agent: Mutt/1.3.28i In message <20040101233856.GA13263@blorf.net> on Thu, Jan 01, 2004 at 03:38:56PM -0800, Wayne Davison wrote: > On Mon, Dec 29, 2003 at 01:21:22AM -0800, Wayne Davison wrote: > > false; if eval ''; then echo one; fi [...fails...] > > true; if eval ''; then echo two; fi [...succeeds...] > > I'm hoping that someone more familiar with the exec internals will jump > in here, but in the meantime, here's the change I made back on Monday to > fix this bug: Is it really a bug? Doesn't ksh offer this as the preferred behaviour by default in the absence of the 'posix' option? But it seems like an oversight that zsh doesn't give you the ability to have the POSIX behaviour. Perhaps this is one of the featurebugs that makes zsh unsuitable as /bin/sh. Some zsh scripts might depend on zsh's current behaviour.