Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Fix little chown completion annoyance



Hi all,

'chown user: path' is valid syntax, so the colon after "user" should not be automatically removed.

Regards,
 -- Julien
From e612e24db18c291a4aa2bf853437f3ff0883f3f6 Mon Sep 17 00:00:00 2001
From: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
Date: Sun, 28 Aug 2011 07:08:31 +0300
Subject: [PATCH] 'chown user: path' is valid syntax, so the colon should not be removed.

---
 Completion/Unix/Command/_chown |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Completion/Unix/Command/_chown b/Completion/Unix/Command/_chown
index b453931..ab1cbe6 100644
--- a/Completion/Unix/Command/_chown
+++ b/Completion/Unix/Command/_chown
@@ -40,9 +40,9 @@ case $state in
       if compset -S '[.:]*'; then
         suf=()
       elif [[ $OSTYPE = irix* ]]; then
-	suf=( -qS '.' )
+	suf=( -S '.' )
       else
-	suf=( -qS ':' )
+	suf=( -S ':' )
       fi
       _users "$suf[@]" && ret=0
     fi
-- 
1.7.4.1



Messages sorted by: Reverse Date, Date, Thread, Author