Your message dated Sat, 7 Oct 2006 05:53:01 -0400 with message-id <[EMAIL PROTECTED]> has caused the Debian Bug report #377765, regarding zsh: completion of configure script does not handle underscore properly to be marked as having been forwarded to the upstream software author(s) [EMAIL PROTECTED]
(NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database)
--- Begin Message ---On Tue, Jul 11, 2006 at 04:01:35PM +0900, Ryo IGARASHI wrote: > When you make a configure option with underscore, completion returns > without underscore. For example, if you have options like: > > $ ./configure --help > ...snip... > Optional Packages: > --with-under_score=DIR path to under_score library > ...snip... > > Then you get the following completion output: > > $ ./configure [TAB] > --with-underscore --without-underscore > > I attached the test case for this bug. This appears to fix that immediate problem. Is there any downside to allowing underscores? Not committing. Index: Completion/Base/Utility/_arguments =================================================================== RCS file: /cvsroot/zsh/zsh/Completion/Base/Utility/_arguments,v retrieving revision 1.17 diff -u -r1.17 _arguments --- Completion/Base/Utility/_arguments 27 Sep 2006 16:53:59 -0000 1.17 +++ Completion/Base/Utility/_arguments 7 Oct 2006 09:50:40 -0000 @@ -165,7 +165,7 @@ "${${opt%%\=*}//[^a-zA-Z0-9-]}=:${(L)${opt%\]}#*\=}: " ) done else - tmpo=("${(@)${(@)tmpo%%\=*}//[^a-z0-9-]}") + tmpo=("${(@)${(@)tmpo%%\=*}//[^a-z0-9_-]}") cache=( "[EMAIL PROTECTED]" "${(@)^tmpo}=${dir}${descr}" ) fi
--- End Message ---

