about summary refs log tree commit diff
path: root/Completion/User
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-07 22:28:46 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-07 22:28:46 +0000
commit971e5f553f7bd6094fb815f2dd19422b5400e49a (patch)
tree4e0b215a4e5afb5b3a15d4c69a0bb489121df2a7 /Completion/User
parentc56296ba6482a81717361344974ca1a2ea98347f (diff)
downloadzsh-971e5f553f7bd6094fb815f2dd19422b5400e49a.tar.gz
zsh-971e5f553f7bd6094fb815f2dd19422b5400e49a.tar.xz
zsh-971e5f553f7bd6094fb815f2dd19422b5400e49a.zip
zsh-workers/7705
Diffstat (limited to 'Completion/User')
-rw-r--r--Completion/User/_cvs30
1 files changed, 2 insertions, 28 deletions
diff --git a/Completion/User/_cvs b/Completion/User/_cvs
index 33b050fbe..df519f900 100644
--- a/Completion/User/_cvs
+++ b/Completion/User/_cvs
@@ -35,34 +35,8 @@ _cvs_command () {
   if (( CURRENT == 1 )); then
     compadd "$@" ${(k)cmds} || compadd "$@" ${(kv)=cmds}
   else
-    case "${${(k)cmds[(R)* $words[1] *]}:-$words[1]}" in
-      add) _cvs_add;;
-      admin) _cvs_admin;;
-      annotate) _cvs_annotate;;
-      checkout) _cvs_checkout;;
-      commit) _cvs_commit;;
-      diff) _cvs_diff;;
-      edit) _cvs_edit;;
-      editors) _cvs_editors;;
-      export) _cvs_export;;
-      history) _cvs_history;;
-      import) _cvs_import;;
-      init) _cvs_init;;
-      log) _cvs_log;;
-      login) _cvs_login;;
-      logout) _cvs_logout;;
-      rdiff) _cvs_rdiff;;
-      release) _cvs_release;;
-      remove) _cvs_remove;;
-      status) _cvs_status;;
-      rtag) _cvs_rtag;;
-      tag) _cvs_tag;;
-      unedit) _cvs_unedit;;
-      update) _cvs_update;;
-      watch) _cvs_watch;;
-      watchers) _cvs_watchers;;
-      *) _message "unknown cvs command: $words[1]";;
-    esac
+    _cvs_"${${(k)cmds[(R)* $words[1] *]}:-$words[1]}" 2>&- ||
+      _message "unknown cvs command: $words[1]"
   fi
 }