From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7395 invoked by alias); 21 Dec 2012 08:08:41 -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: 30927 Received: (qmail 3099 invoked from network); 21 Dec 2012 08:08:29 -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 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at linux.vnet.ibm.com does not designate permitted sender hosts) Date: Fri, 21 Dec 2012 15:57:51 +0800 From: Han Pingtian To: zsh-workers@zsh.org Subject: Re: Segfault in =( ) substitution Message-ID: <20121221075751.GF2464@localhost.localdomain> References: <20121017202030.46014a7a@pws-pc.ntlworld.com> <20121017211603.6189d6f4@pws-pc.ntlworld.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20121017211603.6189d6f4@pws-pc.ntlworld.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12122107-5406-0000-0000-000003791215 On Wed, Oct 17, 2012 at 09:16:03PM +0100, Peter Stephenson wrote: > I suppose it's worth pointing out you can now do things like this... > > () { > print File $1: > cat $1 > } =(print This be the verse) > > producing: > > File /tmp/zsh0wPl3Y: > This be the verse > > That's a better bet than any hack within the shell that I can think of > because the scoping is obvious. > Hello, I just noticed that this example crashed on zsh both 5.0 and 5.0.1. If I compile zsh with debug enabled, it runs like this: % () { function> print File $1: function> cat $1 function> } =(print hello) File : cat: : No such file or directory Please take a look. Thanks.