summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2011-12-09 14:51:54 +0000
committerMikael Magnusson <mikachu@gmail.com>2011-12-09 14:51:54 +0000
commit45cd289e494db22c177b7a4ecf795b5f0795026c (patch)
tree7b521fd2a8a1a956cbeb1875265578a40f7a6c93 /Completion/Unix/Command
parente3182c18de8f84c2d7eb003f9c731ada5e9a591f (diff)
downloadzsh-45cd289e494db22c177b7a4ecf795b5f0795026c.tar.gz
zsh-45cd289e494db22c177b7a4ecf795b5f0795026c.tar.xz
zsh-45cd289e494db22c177b7a4ecf795b5f0795026c.zip
29876: Update getent completion.
Diffstat (limited to 'Completion/Unix/Command')
-rwxr-xr-xCompletion/Unix/Command/_getent5
1 files changed, 3 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_getent b/Completion/Unix/Command/_getent
index 57d2ec256..9644fa35b 100755
--- a/Completion/Unix/Command/_getent
+++ b/Completion/Unix/Command/_getent
@@ -25,8 +25,9 @@ case $state in
   ;;
   databases)
     if [[ $is_gnu = gnu ]]; then
-      databases=( ${=${${(f)"$(_call_program databases $words[1] --help \
-          2>/dev/null)"}[(r)Supported*,-1]}[2,-1]} )
+      databases=( "${(@)${(@f)$(_call_program databases $words[1] --help \
+                   2>/dev/null)}[(r)Supported*,-1]}" )
+      databases=( "${=${(@)databases[2,${(@)databases[(i)]}-1]}}" )
     else
       databases=( passwd group hosts ipnodes services protocols ethers networks netmasks )
     fi