Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#411050: zsh: configure completion doesn't work after --enable-shared
- X-seq: zsh-workers 23182
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx, 411050@xxxxxxxxxxxxxxx
- Subject: Re: Bug#411050: zsh: configure completion doesn't work after --enable-shared
- Date: Fri, 16 Feb 2007 14:54:27 +0000
- In-reply-to: <20070216042648.GA23597@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <20070215140733.GA6282@xxxxxxxxxxxxxxxxxxx> <20070215152055.GA4432@xxxxxxxxxxx> <20070215214931.GG7604@xxxxxxxxxxxxxxxxxxx> <20070216042648.GA23597@xxxxxxxxxxx>
Clint Adams <clint@xxxxxxx> 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 <pws@xxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author