From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15696 invoked from network); 20 Jul 2009 08:51:31 -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 08:51:31 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 4003 invoked from network); 20 Jul 2009 08:51:26 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Jul 2009 08:51:26 -0000 Received: (qmail 3398 invoked by alias); 20 Jul 2009 08:51:14 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27178 Received: (qmail 3384 invoked from network); 20 Jul 2009 08:51:13 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 20 Jul 2009 08:51:13 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [208.87.233.190]) by bifrost.dotsrc.org (Postfix) with ESMTPS id F3B538027106 for ; Mon, 20 Jul 2009 10:51:10 +0200 (CEST) Received: from cameurexb01.EUROPE.ROOT.PRI ([193.128.72.68]) by rly11g.srv.mailcontrol.com (MailControl) with ESMTP id n6K8p2g5004850 for ; Mon, 20 Jul 2009 09:51:07 +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 09:50:58 +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 n6K8owYg028840 for ; Mon, 20 Jul 2009 09:50:58 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id n6K8ovIg028836 for ; Mon, 20 Jul 2009 09:50:57 +0100 Message-Id: <200907200850.n6K8ovIg028836@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: <237967ef0907200137j245d1bgc43303d2b9805249@mail.gmail.com> References: <20090719171651.GA7217@piper.oerlikon.madduck.net> <20090719232041.GA5156@scru.org> <20090720092757.77e812c7@news01> <237967ef0907200137j245d1bgc43303d2b9805249@mail.gmail.com> Comments: In-reply-to Mikael Magnusson message dated "Mon, 20 Jul 2009 10:37:20 +0200." Date: Mon, 20 Jul 2009 09:50:57 +0100 From: Peter Stephenson X-OriginalArrivalTime: 20 Jul 2009 08:50:58.0209 (UTC) FILETIME=[333E2910:01CA0917] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-09-20-00 (www.mailcontrol.com) on 10.71.0.121 X-Virus-Scanned: ClamAV 0.94.2/9589/Sun Jul 19 05:14:56 2009 on bifrost X-Virus-Status: Clean Mikael Magnusson wrote: > Just thought I'd mention you can also use \ at any time to escape an alias: Something like that is worth mentioning. Index: Etc/FAQ.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Etc/FAQ.yo,v retrieving revision 1.47 diff -u -r1.47 FAQ.yo --- Etc/FAQ.yo 21 Apr 2009 09:33:37 -0000 1.47 +++ Etc/FAQ.yo 20 Jul 2009 08:50:23 -0000 @@ -819,6 +819,14 @@ use in the body of a function, but define the function first if the alias has the same name as the function. + If you aware of the problem, you can always escape part or all of the + name of the function: + verb( + 'l'() { /bin/ls -la "$@" | more } + ) + 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. 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'