Clint Adams <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>                  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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to