diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-28 22:57:39 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-28 22:57:39 +0000 |
| commit | b0c5f09169ac31855ebf0e93772bb57b9635b380 (patch) | |
| tree | 410c43a9843b2c88166c2cb9acd531eaa36d036d /Completion/Unix/Command/_chown | |
| parent | 23478: crash in reverse-menu-complete if no completion (diff) | |
| download | zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.gz zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.bz2 zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.lz zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.xz zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.tar.zst zsh-b0c5f09169ac31855ebf0e93772bb57b9635b380.zip | |
see 23479: add initial features support for modules
Diffstat (limited to 'Completion/Unix/Command/_chown')
| -rw-r--r-- | Completion/Unix/Command/_chown | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Completion/Unix/Command/_chown b/Completion/Unix/Command/_chown index 3371e8ea4..9246db42c 100644 --- a/Completion/Unix/Command/_chown +++ b/Completion/Unix/Command/_chown @@ -50,14 +50,10 @@ case $state in files) (( $+opt_args[-h] || $+opt_args[--no-dereference] )) || deref="-" if (( $+opt_args[--reference] )); then - if zstyle -t ":completion:${curcontext}:" disable-stat; then - _files && ret=0 - else - zmodload -i zsh/stat 2>/dev/null - usr=$(stat +uid $opt_args[--reference]) - grp=$(stat +gid $opt_args[--reference]) - _wanted files expl file _files -g "*($deref^u$usr,$deref^g$grp)" && ret=0 - fi + zmodload -F zsh/stat zstat 2>/dev/null + usr=$(zstat +uid $opt_args[--reference]) + grp=$(zstat +gid $opt_args[--reference]) + _wanted files expl file _files -g "*($deref^u$usr,$deref^g$grp)" && ret=0 return ret fi if [[ $service = chgrp ]]; then |
