Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: completion for strings
- X-seq: zsh-workers 42577
- From: Jun T <takimoto-j@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: completion for strings
- Date: Tue, 3 Apr 2018 17:49:02 +0900
- In-reply-to: <13770.1522310984@thecus>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <13770.1522310984@thecus>
Minor fixes for macOS.
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author