* _cvs problem
@ 2002-05-16 1:08 Clint Adams
2002-05-21 7:33 ` PATCH: " Sven Wischnowsky
0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2002-05-16 1:08 UTC (permalink / raw)
To: zsh-workers
_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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* PATCH: Re: _cvs problem
2002-05-16 1:08 _cvs problem Clint Adams
@ 2002-05-21 7:33 ` Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2002-05-21 7:33 UTC (permalink / raw)
To: zsh-workers
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@berkom.de
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-05-21 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-16 1:08 _cvs problem Clint Adams
2002-05-21 7:33 ` PATCH: " Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).