about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2001-05-17 18:21:06 +0000
committerTanaka Akira <akr@users.sourceforge.net>2001-05-17 18:21:06 +0000
commit851f32f14a1452ae778c92eddab910f120587d9f (patch)
tree062158474b9addbafa9dbb6302320cee13149990
parente0d80b9a2ec6d4ce5773810ac6a90f6b23993c27 (diff)
downloadzsh-851f32f14a1452ae778c92eddab910f120587d9f.tar.gz
zsh-851f32f14a1452ae778c92eddab910f120587d9f.tar.xz
zsh-851f32f14a1452ae778c92eddab910f120587d9f.zip
* 14377: Completion/Unix/Command/_cvs: support new .cvspass format
introduced by cvs-1.11.1.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_cvs2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index b60a20631..2cf10df19 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-05-17  Tanaka Akira  <akr@zsh.org>
+
+	* 14377: Completion/Unix/Command/_cvs: support new .cvspass format
+	introduced by cvs-1.11.1.
+
 2001-05-17  Peter Stephenson  <pws@csr.com>
 
 	* 14376: Completion/Unix/Command/_lp: type with compset.
diff --git a/Completion/Unix/Command/_cvs b/Completion/Unix/Command/_cvs
index e46c2f0b5..13f60194c 100644
--- a/Completion/Unix/Command/_cvs
+++ b/Completion/Unix/Command/_cvs
@@ -614,7 +614,7 @@ _cvs_root () {
       id="$(LC_ALL=C ls -l "$cvspassfile")"
     fi
     if [[ "$id" != "$_cvs_pass_id" ]]; then
-      _cvs_roots=($_cvs_roots ${${(f)"$(<$cvspassfile)"}%% *})
+      _cvs_roots=($_cvs_roots ${${${${(f)"$(<$cvspassfile)"}#/1 }%% *}/:2401\\//:/})
       _cvs_pass_id="$id"
     fi
   fi