zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: pattern error in cvs completion
@ 2002-05-26 19:19 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2002-05-26 19:19 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-26 19:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-26 19:19 PATCH: pattern error in cvs completion Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).