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 | |
parent | 53ec91769cd241ba306ea20bc092fb4284543cae (diff) | |
download | zsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.tar.gz zsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.tar.xz zsh-b66a4a262fd19934efcda0aa5dbe5d74a7848f2b.zip |
17234: don't call _path_files with empty ().
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_cvs | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 3a54cc124..43f486ad7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-05-26 Clint Adams <clint@zsh.org> + + * 17234: Completion/Unix/Command/_cvs: + don't call _path_files with empty (). + 2002-05-25 Clint Adams <clint@zsh.org> * 17225: Completion/Unix/Command/_cvs: 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 } } |