From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7466 invoked from network); 16 Sep 2002 20:47:11 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Sep 2002 20:47:11 -0000 Received: (qmail 27252 invoked by alias); 16 Sep 2002 20:47:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17684 Received: (qmail 27231 invoked from network); 16 Sep 2002 20:47:02 -0000 Date: Mon, 16 Sep 2002 16:46:57 -0400 From: Hans Dieter Pearcey To: zsh-workers@sunsite.dk Subject: Re: For loop bug Message-ID: <20020916204657.GA29752@malachi.theoscape.net> References: <20020913233156.324A31C0E9@pwstephenson.fsnet.co.uk> <871y7xs7yd.fsf@ceramic.fifi.org> <1020914045657.ZM12939@candle.brasslantern.com> <87elbufs3q.fsf@ceramic.fifi.org> <1020916062550.ZM29286@candle.brasslantern.com> <873cs9pz8a.fsf@ceramic.fifi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <873cs9pz8a.fsf@ceramic.fifi.org> User-Agent: Mutt/1.4i On Mon, Sep 16, 2002 at 11:26:45AM -0700, Philippe Troin wrote: > "Bart Schaefer" writes: > > $i never has a chance to get set to 2. > > Got that part. Thanks for the clarifications. > > > } > Further, { } is not a subshell, so { [[ 2 == 2 ]] && exit 1; } would most > > Indeed. However my version of zsh does not exit: it goes on happily as > if nothing happened. Because, as above, $i never gets to 2, and so the [[ 2 == 2 ]] && exit 1 is not reached. hdp.