summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_cvs9
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 4838783cc..716f73120 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-18  Sven Wischnowsky  <wischnow@zsh.org>
+
+	* 15402 (Akinora Musha): Completion/Unix/Command/_cvs: add
+	support for -R option on BSDs
+
 2001-07-17  Oliver Kiddle  <opk@zsh.org>
 
 	* 15393 (Akinori Musha): Completion/Unix/Command/_chown: use
diff --git a/Completion/Unix/Command/_cvs b/Completion/Unix/Command/_cvs
index b25a2fd45..691407356 100644
--- a/Completion/Unix/Command/_cvs
+++ b/Completion/Unix/Command/_cvs
@@ -3,8 +3,17 @@
 # redefine _cvs.
 
 _cvs () {
+  local extra
+
   # "+Qqrwtnlvb:T:e:d:Hfz:s:xa"
+  case $OSTYPE in
+  freebsd*|openbsd*)
+    extra='-R[read only access]'
+    ;;
+  esac
+
   _arguments -s \
+    $extra \
     '-a[authenticate]' \
     '-f[disable .cvsrc]' \
     '(-n)-l[disable logging]' \