1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 06:00:54 +01:00

17234: don't call _path_files with empty ().

This commit is contained in:
Clint Adams 2002-05-26 19:22:42 +00:00
parent 53ec91769c
commit b66a4a262f
2 changed files with 10 additions and 1 deletions

View file

@ -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
}
}