summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-07-03 11:34:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-07-03 11:34:56 +0000
commit33aca1ff6ce316633eb25619e2d9fccf1c029cac (patch)
tree764e0cca27c672ecffba3435ca6c2f31c34947b8 /Completion/Unix/Command
parent936208bd9f36c7705ed0dd0966551b57a29d40a5 (diff)
downloadzsh-33aca1ff6ce316633eb25619e2d9fccf1c029cac.tar.gz
zsh-33aca1ff6ce316633eb25619e2d9fccf1c029cac.tar.xz
zsh-33aca1ff6ce316633eb25619e2d9fccf1c029cac.zip
19696: quoting of existing CVS-managed files was wrong
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_cvs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_cvs b/Completion/Unix/Command/_cvs
index c2ddb2e2c..8082b7336 100644
--- a/Completion/Unix/Command/_cvs
+++ b/Completion/Unix/Command/_cvs
@@ -912,8 +912,8 @@ _cvs_existing_entries () {
   linedir="$match[1]"
   realdir=${(e)~linedir}
   [[ -f "$realdir"CVS/Entries ]] &&
-  [[ -n ${pat::="${(@j:|:)${(@)${(@)${(@)${(@M)${(@f)"$(<"$realdir"CVS/Entries)"}:#/*}#/}%%/*}//(#m)[][*?()<|^~#\\]/\\$MATCH}}"} ]] &&
-  _wanted files expl file _path_files -g "$pat"
+  pat=(${(@)${(@)${(@M)${(@f)"$(<"$realdir"CVS/Entries)"}:#/*}#/}%%/*})
+  (( ${#pat} )) && _wanted files expl file _path_files -a pat
 }
 
 (( $+functions[_cvs_modified_entries] )) ||