summaryrefslogtreecommitdiff
path: root/Completion/User/_chown
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/User/_chown')
-rw-r--r--Completion/User/_chown6
1 files changed, 3 insertions, 3 deletions
diff --git a/Completion/User/_chown b/Completion/User/_chown
index 1ec76b39e..aa2ff4928 100644
--- a/Completion/User/_chown
+++ b/Completion/User/_chown
@@ -1,13 +1,13 @@
#compdef chown chgrp
if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
- if [[ $words[1] = chgrp ]] || compset -P '*[:.]'; then
+ if [[ ${words[1]:t} = chgrp ]] || compset -P '*[:.]'; then
_groups
else
if [[ $OSTYPE = (solaris*|hpux*) ]]; then
- compgen -u -S ':' -q
+ _users -S ':' -q
else
- compgen -u -S '.' -q
+ _users -S '.' -q
fi
fi
else