From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9072 invoked from network); 17 Sep 2002 00:09:00 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 17 Sep 2002 00:09:00 -0000 Received: (qmail 6233 invoked by alias); 17 Sep 2002 00:08:45 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 17685 Received: (qmail 6221 invoked from network); 17 Sep 2002 00:08:44 -0000 To: zsh-workers@sunsite.dk Subject: Re: For loop bug 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> <20020916204657.GA29752@malachi.theoscape.net> From: Philippe Troin Date: 16 Sep 2002 17:08:40 -0700 In-Reply-To: <20020916204657.GA29752@malachi.theoscape.net> Message-ID: <87wuplo4tz.fsf@ceramic.fifi.org> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: Philippe Troin Hans Dieter Pearcey writes: > 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. You're absolutely right. No bugs here :-) Phil.