From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18773 invoked by alias); 10 Nov 2012 21:23:48 -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: 30792 Received: (qmail 6519 invoked from network); 10 Nov 2012 21:23:37 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 209.85.212.177 is neither permitted nor denied by SPF record at ntlworld.com) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=qrI3Bg9jb5qXUl0VO3lgH8psJGybT4SwWIOnQ7UeAIA=; b=mB0GyO7C5J6QHNMAWh3OMPcC+6dB1N+chYPhScb7v+B039JnwsSCRDO34ShOj1RjGU n4U9D0CfmMg4pbNo0My5/0A40czvAkPPCelwiE2AMSMqmSswYUgseLc1dtAFKqwOXiIC YoZUv2+I9Rgnbtg0wjCaiSEc7RSjujzVUwk3FVHomLkr31g+YRpvCJIhg5Ccl9T0PT7+ VyAuTqFre7t2rJG/mN0ZSNLdQC4/TBQ0/a8Vwp9xSZC5kH4k07eyDmNraJL7GDhOmQs4 pnMDJkEbHNi8UaEhtCeq7JgHRkG/RyN32H+qAd2xHidtKis5+wU0U0Cy+13jnEKfykUN ENpw== X-ProxyUser-IP: 82.8.55.192 Date: Sat, 10 Nov 2012 21:23:30 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Function code breaking out of if then ...fi Message-ID: <20121110212330.0d74f97f@pws-pc.ntlworld.com> In-Reply-To: <121109171319.ZM4069@torch.brasslantern.com> References: <121102143911.ZM14168@torch.brasslantern.com> <20121105142942.41d73d31@pwslap01u.europe.root.pri> <20121105145501.50c674f1@pwslap01u.europe.root.pri> <20121109225255.7139bb47@pws-pc.ntlworld.com> <121109171319.ZM4069@torch.brasslantern.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQks8xSgF2yKPi1dkEe/v6y7HX/2E1MuI90eQEJv5+7loIO1ExDRtjmdcbokqYaWIJ3sgAxk On Fri, 09 Nov 2012 17:13:19 -0800 Bart Schaefer wrote: > I believe I know the reason for this behavior, and perhaps it points to a > bug: > > When reading a startup file such as .zshrc, there is an intent to avoid > skipping the entire configuration just because of one erroneous command > somewhere in the middle. I've a vague memory of this too, but evidence suggests it's not showing CONTINUE_ON_ERROR behaviour (this is before my patch): % cat ~/tmp/zdotdir/.zshrc print First line echo *fumblewumble* print Second line % ZDOTDIR=~/tmp/zdotdir zsh First line /home/pws/tmp/zdotdir/.zshrc:2: no matches found: *fumblewumble* % exit # <- this is the prompt inside the new shell % zsh ~/tmp/zdotdir/.zshrc First line /home/pws/tmp/zdotdir/.zshrc:2: no matches found: *fumblewumble* Second line So if that was the intention, we've already messed it up. A bit of historical research might be interesting. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/