From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11967 invoked from network); 6 Mar 2008 13:04:58 -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.4 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; 6 Mar 2008 13:04:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 29065 invoked from network); 6 Mar 2008 13:04:54 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Mar 2008 13:04:54 -0000 Received: (qmail 26306 invoked by alias); 6 Mar 2008 13:04:51 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24691 Received: (qmail 26290 invoked from network); 6 Mar 2008 13:04:50 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 6 Mar 2008 13:04:50 -0000 Received: from cluster-g.mailcontrol.com (cluster-g.mailcontrol.com [85.115.41.190]) by bifrost.dotsrc.org (Postfix) with ESMTP id 453ED8029404 for ; Thu, 6 Mar 2008 14:04:46 +0100 (CET) Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly17g.srv.mailcontrol.com (MailControl) with ESMTP id m26D4EGk002538 for ; Thu, 6 Mar 2008 13:04:44 GMT Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.3959); Thu, 6 Mar 2008 13:04:00 +0000 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.14.2/8.13.4) with ESMTP id m26D40xg032738 for ; Thu, 6 Mar 2008 13:04:00 GMT Received: from csr.com (pws@localhost) by news01.csr.com (8.14.2/8.14.2/Submit) with ESMTP id m26D3uhK032732 for ; Thu, 6 Mar 2008 13:04:00 GMT Message-Id: <200803061304.m26D3uhK032732@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk Subject: Re: [Bug] make, zsh and functions In-reply-to: <47CFE8E3.6090005@lshift.net> References: <47CFE8E3.6090005@lshift.net> Comments: In-reply-to Adrien Pierard message dated "Thu, 06 Mar 2008 12:51:47 +0000." Date: Thu, 06 Mar 2008 13:03:56 +0000 From: Peter Stephenson X-OriginalArrivalTime: 06 Mar 2008 13:04:00.0113 (UTC) FILETIME=[8B681E10:01C87F8A] X-Scanned-By: MailControl A-08-00-04 (www.mailcontrol.com) on 10.71.0.127 X-Virus-Scanned: ClamAV 0.91.2/6151/Thu Mar 6 13:09:17 2008 on bifrost X-Virus-Status: Clean Adrien Pierard wrote: > Hi. > > This is a bug that is easy to reproduce: > ------------snip--------- > % cat > Makefile > all: > @echo hello > ^D > % make > hello > % make foo(). > % make > make:.:3: not enough arguments This isn't a bug; see the syntax for function definitions in the zshmisc manual. "make foo()." defines two functions called make and foo with the body ".". This feature isn't often used; it seems to be there to make it easy to define identical trap functions. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070