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

PATCH: Re: _cvs problem



Clint Adams wrote:

> _cvs chokes on files with spaces.
> 
> To reproduce:
> 
> mkdir -p test/CVS
> echo "D/a b c////" > test/CVS/Entries
> cd test
> cvs add <TAB>
> 
> ===
> Seems to be happening at or before _cvs:969.

Splitting of the `-g'-string in _path_files was too simple minded.


Bye
  Sven

Index: Completion/Unix/Type/_path_files
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_path_files,v
retrieving revision 1.16
diff -u -r1.16 _path_files
--- Completion/Unix/Type/_path_files	3 May 2002 12:49:30 -0000	1.16
+++ Completion/Unix/Type/_path_files	21 May 2002 07:33:49 -0000
@@ -23,9 +23,9 @@
 (( $tmp1[(I)-[/g]*] )) && haspats=yes
 (( $tmp1[(I)-g*] )) && gopt=yes
 if (( $tmp1[(I)-/] )); then
-  pats=( '*(-/)' ${=${(M)tmp1:#-g*}#-g} )
+  pats=( '*(-/)' ${(z)${(M)tmp1:#-g*}#-g} )
 else
-  pats=( "${(@)=${(@M)tmp1:#-g*}#-g}" )
+  pats=( "${(@z)${(@M)tmp1:#-g*}#-g}" )
 fi
 pats=( "${(@)pats:# #}" )
 

-- 
Sven Wischnowsky                          wischnow@xxxxxxxxx



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