Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: For loop bug



Hans Dieter Pearcey <hdp@xxxxxxxxx> writes:

> On Mon, Sep 16, 2002 at 11:26:45AM -0700, Philippe Troin wrote:
> > "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx> 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.



Messages sorted by: Reverse Date, Date, Thread, Author