From e9a76d392449801456c4b47733f187d219477786 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 5 Apr 2018 10:27:45 +0900 Subject: 42577: fix macOS support in _strings --- ChangeLog | 4 ++++ Completion/Unix/Command/_strings | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5c34e293e..0ff97d936 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-04-05 Jun-ichi Takimoto + + * 42577: Completion/Unix/Command/_strings: fix macOS support + 2018-04-04 Peter Stephenson * unposted: 5.4.2-test-2. 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 -- cgit 1.4.1