Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: err_exit/err_return regression
- X-seq: zsh-workers 36704
- From: Joshua Krusell <js.shirin@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: err_exit/err_return regression
- Date: Tue, 29 Sep 2015 22:52:04 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=HOB62yoY3zVrpDNEgejozVvnJvCQTK3+D8Mc9a1RQr4=; b=n2LVgulKxeQH8RsyBAxOjk/J/Hjb/17eqaYYamNy6reFjyAIOvMQ3q4QodCer47U/z uP/I0poDnttLE7MsLcGxq9HzWXoDw0IjAvPEo4r2OrPmkPgrHiP7UguPVvxGJ51omx7P XFfu1ZmmG/hrsCgliH0mQELupXpmlrGHTqiFBsO/7EmcFDPjiJd37Hz26R0ibntLzAzj pVjKKiDoQcgXBIw4EmdNHzqs6e8bmczZcXJlP7F2mXKMvOajIdeNGVw8m77nvii4gH4+ 2CRDlrUq/MPH9mthNTVR0nyCiuR+Y2M2vhgfUu1SRfDn3O3BTpeAloU3hTHf0z8f9KVA axKA==
- In-reply-to: <20150929195432.7b0e3525@ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAOCbtnsTgLStbfjKF9AfF61z_WWniKOKurSEdB1iy5cHjbbvrw@mail.gmail.com> <20150709143823.184fb4e1@pwslap01u.europe.root.pri> <20150929154327.GA11991@Qliphoth.local> <20150929195432.7b0e3525@ntlworld.com>
On 29/09/15 at 07:54P, Peter Stephenson wrote:
> On Tue, 29 Sep 2015 17:43:27 +0200
> Joshua Krusell <js.shirin@xxxxxxxxx> wrote:
> > Heads up, found another edge case probably related to this.
> >
> > The following snippet will never reach the print statement. I can only
> > reproduce this with a nested [[ followed by a var assignment.
>
> Looks like there's another ingredient here since I don't see this with
> the current contents of the master branch.
>
> pws
Was in a hurry and didn't provide much context, but that was with zsh
5.1.1. I just checked out master and I'm still getting the same results
on both OSX and Linux. Can provide output of `./configure` but suffice
to say just doing a default build (`reporter` is also pretty boring
http://pastebin.com/QaCh869w).
$ cat ex.sh
setopt err_return
print $ZSH_VERSION
setopt
if false; then
:
else
if [[ -n '' ]]; then
a=2
fi
print foo
fi
$ env -i Src/zsh -f ex.sh
5.1.1-dev-0
errreturn
nohashdirs
norcs
Any other info I can provide?
/jsks
Messages sorted by:
Reverse Date,
Date,
Thread,
Author