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

PATCH: Re: completion problem with filename including #



Tanaka Akira wrote:

> Z:akr@cvs% zsh -f
> cvs% bindkey -e; autoload -U compinit; compinit -D
> cvs% rmdir /cvs/root/www/\#cvs.lock/<TAB>
> _path_files:327: bad pattern: /cvs/root/www/#cvs.lock/*(-/)

Damn. This `quoting of glob characters' just made it one more step up
in my list of things that would be nice to have in C-code, efficiently.

Bye
 Sven

Index: Completion/Core/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_path_files,v
retrieving revision 1.27
diff -u -r1.27 _path_files
--- Completion/Core/_path_files	2000/07/26 09:16:13	1.27
+++ Completion/Core/_path_files	2000/08/03 11:08:38
@@ -421,6 +421,7 @@
     # There are more components, so skip over the next components and make a
     # slash be added.
 
+    tmp1=( ${tmp1//(#b)([][()|*?^#~<>])/\\${match[1]}} )
     tmp2="${(M)tpre##((.|..|)/)##}"
     if [[ -n "$tmp2" ]]; then
       skipped="/$tmp2"

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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