about summary refs log tree commit diff
path: root/Completion/User/_chown
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2000-05-23 18:06:32 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2000-05-23 18:06:32 +0000
commitb9195aa57d0e2f9512450b169a807ff23b31def8 (patch)
treed252ccd479c0cf7d7a9f97a53f4f641b59ce30fe /Completion/User/_chown
parent63b7b10355ebcb9543bcb8f2f40f173de66f0740 (diff)
downloadzsh-b9195aa57d0e2f9512450b169a807ff23b31def8.tar.gz
zsh-b9195aa57d0e2f9512450b169a807ff23b31def8.tar.xz
zsh-b9195aa57d0e2f9512450b169a807ff23b31def8.zip
minor completion fixes (11541)
Diffstat (limited to 'Completion/User/_chown')
-rw-r--r--Completion/User/_chown8
1 files changed, 6 insertions, 2 deletions
diff --git a/Completion/User/_chown b/Completion/User/_chown
index aa2ff4928..0363e838c 100644
--- a/Completion/User/_chown
+++ b/Completion/User/_chown
@@ -1,14 +1,18 @@
 #compdef chown chgrp
 
+local suf
+
 if [[ CURRENT -eq 2 || CURRENT -eq 3 && $words[CURRENT-1] = -* ]]; then
   if [[ ${words[1]:t} = chgrp ]] || compset -P '*[:.]'; then
     _groups
   else
     if [[ $OSTYPE = (solaris*|hpux*) ]]; then
-      _users -S ':' -q
+      suf=':'
     else
-      _users -S '.' -q
+      suf='.'
     fi
+    compset -S '.*' && unset suf
+    _users -S "$suf" -q
   fi
 else
   _files