From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20407 invoked from network); 20 Jul 2009 09:16:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 20 Jul 2009 09:16:10 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 12775 invoked from network); 20 Jul 2009 09:16:01 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jul 2009 09:16:01 -0000 Received: (qmail 25896 invoked by alias); 20 Jul 2009 09:15:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27180 Received: (qmail 25877 invoked from network); 20 Jul 2009 09:15:49 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 20 Jul 2009 09:15:49 -0000 Received: from cluster-d.mailcontrol.com (cluster-d.mailcontrol.com [85.115.60.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 6025E8027106 for ; Mon, 20 Jul 2009 11:15:46 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly01d.srv.mailcontrol.com (MailControl) with ESMTP id n6K9Fhgt012310 for ; Mon, 20 Jul 2009 10:15:43 +0100 Received: from news01.csr.com ([10.99.50.25]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Mon, 20 Jul 2009 10:15:42 +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 n6K9Fgsj029190 for ; Mon, 20 Jul 2009 10:15:42 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id n6K9FgQj029187 for ; Mon, 20 Jul 2009 10:15:42 +0100 Message-Id: <200907200915.n6K9FgQj029187@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: Bug#537596: regression: parse error near `()' in function definition In-reply-to: <237967ef0907200210k1df76e67u16056ff1e5d1be27@mail.gmail.com> References: <20090719171651.GA7217@piper.oerlikon.madduck.net> <20090719232041.GA5156@scru.org> <20090720092757.77e812c7@news01> <237967ef0907200137j245d1bgc43303d2b9805249@mail.gmail.com> <200907200850.n6K8ovIg028836@news01.csr.com> <237967ef0907200210k1df76e67u16056ff1e5d1be27@mail.gmail.com> Comments: In-reply-to Mikael Magnusson message dated "Mon, 20 Jul 2009 11:10:47 +0200." Date: Mon, 20 Jul 2009 10:15:42 +0100 From: Peter Stephenson X-OriginalArrivalTime: 20 Jul 2009 09:15:42.0671 (UTC) FILETIME=[A80D15F0:01CA091A] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-09-20-00 (www.mailcontrol.com) on 10.68.0.111 X-Virus-Scanned: ClamAV 0.94.2/9589/Sun Jul 19 05:14:56 2009 on bifrost X-Virus-Status: Clean You're right, it's not absolutely guaranteed to be safe. Index: Etc/FAQ.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Etc/FAQ.yo,v retrieving revision 1.48 diff -u -r1.48 FAQ.yo --- Etc/FAQ.yo 20 Jul 2009 09:02:41 -0000 1.48 +++ Etc/FAQ.yo 20 Jul 2009 09:15:07 -0000 @@ -826,7 +826,9 @@ ) Adding the quotes has no effect on the function definition, but suppresses alias expansion for the function name. Hence this is - guaranteed to be safe. + guaranteed to be safe---unless you are in the habit of defining + aliases for expressions such as tt('l'), which is valid, but probably + confusing. sect(Similarities with tcsh) -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK 'member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom'