about summary refs log tree commit diff
path: root/Completion/Unix/Command/_mt
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_mt')
-rw-r--r--Completion/Unix/Command/_mt8
1 files changed, 5 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_mt b/Completion/Unix/Command/_mt
index 8d2689539..4d750537c 100644
--- a/Completion/Unix/Command/_mt
+++ b/Completion/Unix/Command/_mt
@@ -1,7 +1,7 @@
 #compdef mt
 
 local -a args cmds
-local state line curcontext="$curcontext"
+local state line curcontext="$curcontext" ret=1
 
 args=( '(-)-f[specify raw tape device]:tape device:_files' )
 cmds=(
@@ -73,6 +73,8 @@ elif [[ $OSTYPE = solaris* ]]; then
 fi
 
 _arguments -C "$args[@]" '(--help --version -V)1:operation:->operation' \
-    '2:count:' && return
+    '2:count:' && ret=0
 
-[[ -n "$state" ]] && _describe -t operations 'operation' cmds
+[[ -n "$state" ]] && _describe -t operations 'operation' cmds && ret=0
+
+return ret