diff options
author | Mikael Magnusson <mikachu@gmail.com> | 2011-12-09 14:51:54 +0000 |
---|---|---|
committer | Mikael Magnusson <mikachu@gmail.com> | 2011-12-09 14:51:54 +0000 |
commit | 45cd289e494db22c177b7a4ecf795b5f0795026c (patch) | |
tree | 7b521fd2a8a1a956cbeb1875265578a40f7a6c93 /Completion/Unix/Command | |
parent | e3182c18de8f84c2d7eb003f9c731ada5e9a591f (diff) | |
download | zsh-45cd289e494db22c177b7a4ecf795b5f0795026c.tar.gz zsh-45cd289e494db22c177b7a4ecf795b5f0795026c.tar.xz zsh-45cd289e494db22c177b7a4ecf795b5f0795026c.zip |
29876: Update getent completion.
Diffstat (limited to 'Completion/Unix/Command')
-rwxr-xr-x | Completion/Unix/Command/_getent | 5 |
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 |