From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25766 invoked by alias); 23 Oct 2013 08:32:07 -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: 31871 Received: (qmail 5986 invoked from network); 23 Oct 2013 08:32:01 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f5-b7ef66d00000795a-47-5267872488d1 Date: Wed, 23 Oct 2013 09:21:55 +0100 From: Peter Stephenson To: Ian F , zsh-workers@zsh.org Subject: Re: Strange function/pipestatus behavior, maybe a scope bug? Message-id: <20131023092155.5ba8a54b@pwslap01u.europe.root.pri> In-reply-to: References: Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOLMWRmVeSWpSXmKPExsVy+t/xa7oq7elBBg0TmSyW7H3LbHGw+SGT A5PHzll32T1WHfzAFMAUxWWTkpqTWZZapG+XwJVxbv9R9oINzBV7t69mb2C8wtTFyMkhIWAi MX/BdhYIW0ziwr31bF2MXBxCAksZJQ53f2KFcPqZJGZsaGcDqWIRUJX48W01WAebgKHE1E2z GUFsESD79bbtYLawgKvE2TszwWxeAXuJnqcPmUFsToFgiXnTDoPNERIIkFg8qQkszi+gL3H1 7yeoi+wlZl45A9UrKPFj8j2wXcwCWhKbtzWxQtjyEpvXvGWewCgwC0nZLCRls5CULWBkXsUo mlqaXFCclJ5rpFecmFtcmpeul5yfu4kREphfdzAuPWZ1iFGAg1GJh9eiPS1IiDWxrLgy9xCj BAezkghvsy9QiDclsbIqtSg/vqg0J7X4ECMTB6dUA2OJyc2r77JFg3w3XrXtvmivcWlXz1TB BUtNSvRLPKX+Lve5Me1hfuKi4wzusoc0Z7zOuO0f5X3h9Y3K+h3+nQ1XctwmKPN/4P/9/77W hIPWnXcfB/Mt77ZUf7bitzjrj4wTkmZaLl8s1zlPrtnoISVQevvpnpbFEay5DqZ7Dm/7uHmN aE2S0hQlluKMREMt5qLiRAALCuhMKgIAAA== On Tue, 22 Oct 2013 11:03:07 -0700 Ian F wrote: > Potential bug case: > > awkFunc() { awk; } > > % false | true | false | true | awkFunc; echo $pipestatus > 0 Yes, that's a bug owing to the way the shell executes internal shell commands within the right hand side of a pipeline. There was a thread on this starting at zsh-workers/29973: http://www.zsh.org/mla/workers/2011/msg01394.html pws