Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#377765: zsh: completion of configure script does not handle underscore properly



Hi,

On 10/7/06, Clint Adams <schizo@xxxxxxxxxx> wrote:

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=( "$cache[@]" "${(@)^tmpo}=${dir}${descr}" )
         fi


The above patch solved my problem and I haven't experienced any
side effect yet.

Well, I am very sorry for the late reply.

--
Ryo IGARASHI
rigarash@xxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author