From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15393 invoked from network); 26 Jun 2008 15:43:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Jun 2008 15:43:00 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 16098 invoked from network); 26 Jun 2008 15:42:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Jun 2008 15:42:57 -0000 Received: (qmail 528 invoked by alias); 26 Jun 2008 15:42:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 25250 Received: (qmail 514 invoked from network); 26 Jun 2008 15:42:55 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 26 Jun 2008 15:42:55 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 87EF980561C2 for ; Thu, 26 Jun 2008 17:42:45 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly24g.srv.mailcontrol.com (MailControl) with ESMTP id m5QFgepk025865 for ; Thu, 26 Jun 2008 16:42:41 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Thu, 26 Jun 2008 16:42:32 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.2/8.13.4) with ESMTP id m5QFgWDn019707 for ; Thu, 26 Jun 2008 16:42:33 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id m5QFgIoE019702 for ; Thu, 26 Jun 2008 16:42:32 +0100 Message-Id: <200806261542.m5QFgIoE019702@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: PATCH: anonymous functions (no documentation yet) In-reply-to: <20080626153203.GA10599@sc.homeunix.net> References: <18441.1214488302@csr.com> <9646.1214491732@thecus> <200806261506.m5QF6aCd019139@news01.csr.com> <20080626153203.GA10599@sc.homeunix.net> Comments: In-reply-to Stephane Chazelas message dated "Thu, 26 Jun 2008 16:32:03 +0100." Date: Thu, 26 Jun 2008 16:42:18 +0100 From: Peter Stephenson X-OriginalArrivalTime: 26 Jun 2008 15:42:32.0625 (UTC) FILETIME=[3F924210:01C8D7A3] X-Scanned-By: MailControl A-08-50-03 (www.mailcontrol.com) on 10.71.0.134 X-Virus-Scanned: ClamAV 0.92.1/7570/Thu Jun 26 16:16:49 2008 on bifrost X-Virus-Status: Clean Stephane Chazelas wrote: > On Thu, Jun 26, 2008 at 04:06:36PM +0100, Peter Stephenson wrote: > > > Out of interest, how does it affect: > > > ""() { ... } > > > > That also turns into an empty argument list that is ignored. I would > > have to check why since my first guess was it would produce an invalid > > empty function name. > > Well, > > ""() echo test > '' > > Does echo "test". You're right; I didn't try it out. I'd forgotten functions (unlike variables) could be called absolutely any string of characters. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070