From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14877 invoked by alias); 29 Sep 2015 20:52:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 36704 Received: (qmail 27003 invoked from network); 29 Sep 2015 20:52:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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== X-Received: by 10.152.7.38 with SMTP id g6mr12247laa.106.1443559930543; Tue, 29 Sep 2015 13:52:10 -0700 (PDT) Date: Tue, 29 Sep 2015 22:52:04 +0200 From: Joshua Krusell To: zsh-workers@zsh.org Subject: Re: err_exit/err_return regression Message-ID: <20150929205204.GA29608@Qliphoth.local> Mail-Followup-To: zsh-workers@zsh.org References: <20150709143823.184fb4e1@pwslap01u.europe.root.pri> <20150929154327.GA11991@Qliphoth.local> <20150929195432.7b0e3525@ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150929195432.7b0e3525@ntlworld.com> User-Agent: Mutt/1.5.24 (2015-08-30) On 29/09/15 at 07:54P, Peter Stephenson wrote: > On Tue, 29 Sep 2015 17:43:27 +0200 > Joshua Krusell 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