diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-01-21 16:13:15 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-01-21 16:13:15 +0000 |
commit | f463b09b133f8c798750334558b99d633c1a2219 (patch) | |
tree | 0f203d91189b49d084fee0cd32d6dc77b9a935b2 /Completion/Unix/Command | |
parent | 4f6493aff1b41e314c2ca6adf3c374b093291c21 (diff) | |
download | zsh-f463b09b133f8c798750334558b99d633c1a2219.tar.gz zsh-f463b09b133f8c798750334558b99d633c1a2219.tar.xz zsh-f463b09b133f8c798750334558b99d633c1a2219.zip |
allow arguments to be given to functions used by compdef (actually, the strings are eval'uated, so this should be powerful enough) (16472)
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_su | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_su b/Completion/Unix/Command/_su index daf301555..d8ed17183 100644 --- a/Completion/Unix/Command/_su +++ b/Completion/Unix/Command/_su @@ -16,7 +16,5 @@ fi shell="${${(M@)${(@f)$(</etc/passwd)}:#$usr*}##*:}" compset -n $base -for name in $shell $shell:t -default-; do - comp="$_comps[$name]" - [[ -n "$comp" ]] && "$comp" && return -done + +_contexts -o $shell $shell:t -default- |