From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25812 invoked from network); 16 Feb 2007 14:55:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 16 Feb 2007 14:55:45 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 75697 invoked from network); 16 Feb 2007 14:55:39 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 16 Feb 2007 14:55:39 -0000 Received: (qmail 21890 invoked by alias); 16 Feb 2007 14:55:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23182 Received: (qmail 21881 invoked from network); 16 Feb 2007 14:55:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 16 Feb 2007 14:55:35 -0000 Received: (qmail 75361 invoked from network); 16 Feb 2007 14:55:35 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 16 Feb 2007 14:55:27 -0000 Received: from rly06c.srv.mailcontrol.com (localhost.localdomain [127.0.0.1]) by rly06c.srv.mailcontrol.com (MailControl) with ESMTP id l1GEtMdN030288 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 16 Feb 2007 14:55:22 GMT Received: from submission.mailcontrol.com (submission.mailcontrol.com [86.111.216.190]) by rly06c.srv.mailcontrol.com (MailControl) id l1GEsZ8X028458 for zsh-workers@sunsite.dk; Fri, 16 Feb 2007 14:54:35 GMT Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly06c-eth0.srv.mailcontrol.com (envelope-sender Peter.Stephenson@csr.com) (MIMEDefang) with ESMTP id l1GEsXFG028362; Fri, 16 Feb 2007 14:54:35 +0000 (GMT) Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Fri, 16 Feb 2007 14:54:32 +0000 Date: Fri, 16 Feb 2007 14:54:27 +0000 From: Peter Stephenson To: zsh-workers@sunsite.dk, 411050@bugs.debian.org Subject: Re: Bug#411050: zsh: configure completion doesn't work after --enable-shared Message-Id: <20070216145427.71afae15.pws@csr.com> In-Reply-To: <20070216042648.GA23597@scowler.net> References: <20070215140733.GA6282@vin.lip.ens-lyon.fr> <20070215152055.GA4432@scowler.net> <20070215214931.GG7604@prunille.vinc17.org> <20070216042648.GA23597@scowler.net> Organization: Cambridge Silicon Radio X-Mailer: Sylpheed version 2.2.10 (GTK+ 2.10.8; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 16 Feb 2007 14:54:32.0895 (UTC) FILETIME=[5E3A54F0:01C751DA] X-Scanned-By: MailControl A-07-06-80 (www.mailcontrol.com) on 10.67.1.116 Clint Adams wrote: > > --enable-shared[=PKGS] build shared libraries [default=yes] > > > > Same problem with --enable-static, where one has: > > > > --enable-static[=PKGS] build static libraries [default=yes] > > I haven't looked at _arguments, but presumably it doesn't understand > this convention. This seems to help. I notice that automatically generated --without-* and --disable-* option specifiers offer to add an argument, too. Presumably this is wrong? Index: Completion/Base/Utility/_arguments =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_arguments,v retrieving revision 1.19 diff -u -r1.19 _arguments --- Completion/Base/Utility/_arguments 10 Oct 2006 21:26:52 -0000 1.19 +++ Completion/Base/Utility/_arguments 16 Feb 2007 14:52:30 -0000 @@ -217,7 +217,11 @@ else odescr= fi - opt2=${${opt%%\[\=*}//[^a-zA-Z0-9-]}=${dir}${odescr} + if [[ $opt = (#b)(*)\[\=* ]]; then + opt2=${${match[1]}//[^a-zA-Z0-9-]}=-${dir}${odescr} + else + opt2=${${opt}//[^a-zA-Z0-9-]}=${dir}${odescr} + fi if [[ "$descr" = :\=* ]]; then cache+=( "${opt2}::${(L)${opt%\]}#*\=}: " ) elif [[ "$descr" = ::* ]]; then -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php To get further information regarding CSR, please visit our Investor Relations page at http://ir.csr.com/csr/about/overview