1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00

19696: quoting of existing CVS-managed files was wrong

This commit is contained in:
Peter Stephenson 2003-07-03 11:34:56 +00:00
parent 936208bd9f
commit 33aca1ff6c
2 changed files with 7 additions and 2 deletions

@ -1,5 +1,10 @@
2003-07-03 Peter Stephenson <pws@csr.com>
* 19696: Completion/Unix/Command/_cvs: quoting of characters
when completing existing CVS-managed files (in particular
spaces) was flakey. The same problem probably exists for
completing modified files, but the code is indecipherable.
* 18769: Src/exec.c: parse error in autoloading file causes
return value zero and empty function definition. Presumed
to be error introduced with wordcode.

@ -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] )) ||