about summary refs log tree commit diff
path: root/Completion/Unix/Command/_strip
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command/_strip')
-rw-r--r--Completion/Unix/Command/_strip10
1 files changed, 5 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_strip b/Completion/Unix/Command/_strip
index 06f7243b5..726d87c2b 100644
--- a/Completion/Unix/Command/_strip
+++ b/Completion/Unix/Command/_strip
@@ -1,6 +1,6 @@
 #compdef strip
 
-local curcontext=$curcontext state line ret=0
+local curcontext=$curcontext state line ret=1
 declare -A opt_args
 declare -a args
 
@@ -11,8 +11,8 @@ if _pick_variant gnu=GNU solaris --version; then
     local expl
 
     _description files expl 'command-line-options file'
-    _files $expl && ret=0
-    return $ret
+    _files "$expl[@]"
+    return
   fi
   args=(
     '(-F --target)'{-F+,--target=}'[object code format to use]:bfd name:->bfdnames'
@@ -52,9 +52,9 @@ case $state in
     local expl
     declare -a bfdnames
 
-    bfdnames=(${=${(M)${(f)"$(_call_program bfdnames strip --help 2>/dev/null)"}:#strip: supported targets: *}#strip: supported targets: })
+    bfdnames=(${=${(M)${(f)"$(_call_program bfdnames strip --help)"}:#strip: supported targets: *}#strip: supported targets: })
     _describe -t bfdnames 'bfd name' bfdnames && ret=0
     ;;
 esac
 
-return $ret
+return ret