zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Fix little chown completion annoyance
@ 2011-08-27 17:29 Julien Nicoulaud
  2011-08-27 17:36 ` Mikael Magnusson
  0 siblings, 1 reply; 4+ messages in thread
From: Julien Nicoulaud @ 2011-08-27 17:29 UTC (permalink / raw)
  To: Mailing-list zsh-workers


[-- Attachment #1.1: Type: text/plain, Size: 129 bytes --]

Hi all,

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

Regards,
 -- Julien

[-- Attachment #1.2: Type: text/html, Size: 206 bytes --]

[-- Attachment #2: 0001-chown-user-path-is-valid-syntax-so-the-colon-should-.patch --]
[-- Type: text/x-patch, Size: 801 bytes --]

From e612e24db18c291a4aa2bf853437f3ff0883f3f6 Mon Sep 17 00:00:00 2001
From: Julien Nicoulaud <julien.nicoulaud@gmail.com>
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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-27 17:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-27 17:29 PATCH: Fix little chown completion annoyance Julien Nicoulaud
2011-08-27 17:36 ` Mikael Magnusson
2011-08-27 17:45   ` Julien Nicoulaud
2011-08-27 17:52     ` Mikael Magnusson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).