diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-18 10:20:34 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-02-18 10:20:34 +0000 |
commit | 294ef9e87237bf1dc12b17a26bc4b22aa5604282 (patch) | |
tree | 36a5ef255a48b7b9f6ac76c94a70ce7d0cd43d49 /Completion/Darwin | |
parent | 213dc8b2109fdbf0d3148eff2fccc1bc968032b4 (diff) | |
download | zsh-294ef9e87237bf1dc12b17a26bc4b22aa5604282.tar.gz zsh-294ef9e87237bf1dc12b17a26bc4b22aa5604282.tar.xz zsh-294ef9e87237bf1dc12b17a26bc4b22aa5604282.zip |
users/8522: Motoi Washida: quotation in Darwin completion
Diffstat (limited to 'Completion/Darwin')
-rw-r--r-- | Completion/Darwin/Command/_defaults | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Darwin/Command/_defaults b/Completion/Darwin/Command/_defaults index 8723c605f..0ecd2ad2f 100644 --- a/Completion/Darwin/Command/_defaults +++ b/Completion/Darwin/Command/_defaults @@ -14,9 +14,10 @@ _defaults_domains(){ } _defaults_keys(){ - local ks="$(_call_program keys defaults read "$words[2]" 2>/dev/null | sed '/^ [[:alpha:]"]/ { s/^ //; s/ = .*$//; p;}; d')" + local ks + ks=(${${${${(M)${(f)"$(defaults read "$words[2]" 2>/dev/null)"}:# [^ ]*=*}# }%% = *}:Q}) local expl - _wanted keys expl 'key' compadd ${(f)ks} + _wanted keys expl 'key' compadd "$ks[@]" } _defaults(){ |