diff options
author | Clint Adams <clint@users.sourceforge.net> | 2002-05-26 19:22:42 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2002-05-26 19:22:42 +0000 |
commit | b66a4a262fd19934efcda0aa5dbe5d74a7848f2b (patch) | |
tree | d8112b2f5155775426197d9789e943cbea916839 /Completion/Unix/Command | |
parent | 53ec91769cd241ba306ea20bc092fb4284543cae (diff) | |
download | zsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.tar.gz zsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.tar.xz zsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.zip |
17234: don't call _path_files with empty ().
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_cvs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_cvs b/Completion/Unix/Command/_cvs index 01c4222c5..584e31f28 100644 --- a/Completion/Unix/Command/_cvs +++ b/Completion/Unix/Command/_cvs @@ -945,7 +945,11 @@ _cvs_strict_nonentried_files () { omitpats=( ${${${${(M)${(f)"$(<"$realdir"CVS/Entries)"}:#/*}#/}%%/*}//(#m)[][*?()<|^~#\\]/\\$MATCH} ) - _path_files -g "*~(*/|)(${(j:|:)~omitpats})(D.)" + if (( $#omitpats )); then + _path_files -g "*~(*/|)(${(j:|:)~omitpats})(D.)" + else + _path_files -g "*~(*/|)(D.)" + fi } } |