about summary refs log tree commit diff
path: root/Completion/Unix/Command/_strings
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-04-05 10:27:45 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2018-04-05 10:27:45 +0900
commite9a76d392449801456c4b47733f187d219477786 (patch)
treeda3543581a1da79547108c937fe3162a8af80ca7 /Completion/Unix/Command/_strings
parentf027f1d6e876708bc75d4217e1ca26898658d8d3 (diff)
downloadzsh-e9a76d392449801456c4b47733f187d219477786.tar.gz
zsh-e9a76d392449801456c4b47733f187d219477786.tar.xz
zsh-e9a76d392449801456c4b47733f187d219477786.zip
42577: fix macOS support in _strings
Diffstat (limited to 'Completion/Unix/Command/_strings')
-rw-r--r--Completion/Unix/Command/_strings4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_strings b/Completion/Unix/Command/_strings
index 8eeff704b..b13366dd2 100644
--- a/Completion/Unix/Command/_strings
+++ b/Completion/Unix/Command/_strings
@@ -56,9 +56,9 @@ else
     '-a[look everywhere in file, not just initialised data space of object files]'
   )
   case $OSTYPE in
-    darwin)
+    darwin*)
       local -a arch
-      arch=( ${${${"$(_call_program architectures strings -arch \? 2>&1)"}#*flags are: }%%$'\n'*} )
+      arch=( ${(z)${${"$(_call_program architectures strings -arch - 2>&1)"}#*flags are: }%%$'\n'*} all )
       args+=( '-arch[specify the architecture]:architecture:compadd -a arch' )
     ;;
   esac