Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: pattern error in cvs completion
- X-seq: zsh-workers 17234
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: pattern error in cvs completion
- Date: Sun, 26 May 2002 15:19:39 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
To reproduce:
mkdir /tmp/test
cd /tmp/test
mkdir CVS
echo D >CVS/Entries
touch .test
echo '.*' >~/.cvsignore
cvs add .<TAB>
Index: Completion/Unix/Command/_cvs
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_cvs,v
retrieving revision 1.14
diff -u -r1.14 _cvs
--- Completion/Unix/Command/_cvs 25 May 2002 23:04:03 -0000 1.14
+++ Completion/Unix/Command/_cvs 26 May 2002 19:18:50 -0000
@@ -945,7 +945,11 @@
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
}
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author