diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2014-01-05 21:25:07 +0100 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2014-01-05 21:25:07 +0100 |
commit | 8f137a4ae2a5c93918760cb960539d17e56560e0 (patch) | |
tree | 9fbe622e12f91733b7e4a7e8609edd3516452709 /Completion/Unix/Command/_chmod | |
parent | f07aa702dda26a4fb5f4dab71dc895109f304808 (diff) | |
parent | 79abe00e1d73b3f0681343a70e3e7f84e5e3d647 (diff) | |
download | zsh-8f137a4ae2a5c93918760cb960539d17e56560e0.tar.gz zsh-8f137a4ae2a5c93918760cb960539d17e56560e0.zip |
New upstream release
(Merge branch 'upstream' into debian)
Diffstat (limited to 'Completion/Unix/Command/_chmod')
-rw-r--r-- | Completion/Unix/Command/_chmod | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/Unix/Command/_chmod b/Completion/Unix/Command/_chmod index 6cb310d57..5d3cb2c78 100644 --- a/Completion/Unix/Command/_chmod +++ b/Completion/Unix/Command/_chmod @@ -57,12 +57,12 @@ case "$state" in zmodload -F zsh/stat b:zstat 2>/dev/null typeset -i8 ref=$(zstat +mode $opt_args[--reference]) _wanted files expl file _files -g "*(-.^f${ref#??})" && ret=0 - elif [[ $words[2] = [0-7]## ]]; then - _wanted files expl file _files -g "*(-.^f$words[2])" && ret=0 + elif [[ $line[1] = [0-7]## ]]; then + _wanted files expl file _files -g "*(-.^f$line[1])" && ret=0 else local spec who op priv local -a specs - for spec in ${(s:,:)words[2]}; do + for spec in ${(s:,:)line[1]}; do if [[ ${spec#*[+-=]} != [rwxst]## ]]; then _files && ret=0 return ret |