summaryrefslogtreecommitdiff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2015-11-26 21:14:04 +0100
committerAxel Beckert <abe@deuxchevaux.org>2015-11-26 21:14:04 +0100
commitd62e937278a04b2cc8d4dde8be9562b9f10b068c (patch)
tree9ed62f2ee69f3231b0da25c69b420f3830f0fb3f /Completion/Unix
parente439a99f592f80729d28f5b2f6f3fbb012a3fd9d (diff)
parent78abc72f64b03d675922f9a958fdf5d6aa32ab67 (diff)
downloadzsh-d62e937278a04b2cc8d4dde8be9562b9f10b068c.tar.gz
zsh-d62e937278a04b2cc8d4dde8be9562b9f10b068c.zip
Merge tag '5.1.1-test-2' into debian
Second test version prior to 5.2 release.
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_groups4
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_groups b/Completion/Unix/Type/_groups
index a5624269e..c5e5aaf83 100644
--- a/Completion/Unix/Type/_groups
+++ b/Completion/Unix/Type/_groups
@@ -13,9 +13,9 @@ if ! zstyle -a ":completion:${curcontext}:" groups groups; then
: ${(A)_cache_groups:=${${(M)${(f)"$(_call_program groups dscacheutil -q group)"}:#name*}##*: }}
fi
elif (( ${+commands[getent]} )); then
- : ${(A)_cache_groups:=${${(s: :)$(_call_program groups getent group 2>/dev/null)}%%:*}}
+ : ${(A)_cache_groups:=${${(f)"$(_call_program groups getent group 2>/dev/null)"}%%:*}}
else
- : ${(A)_cache_groups:=${${${(s: :)$(</etc/group)}%%:*}:#+}}
+ : ${(A)_cache_groups:=${${${(f)"$(</etc/group)"}%%:*}:#+}}
if (( ${+commands[ypcat]} )) &&
tmp=$(_call_program groups ypcat group.byname 2>/dev/null); then
_cache_groups+=( ${${(f)tmp}%%:*} ) # If you use YP