Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Fix little chown completion annoyance
- X-seq: zsh-workers 29725
- From: Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx>
- To: Mailing-list zsh-workers <zsh-workers@xxxxxxx>
- Subject: PATCH: Fix little chown completion annoyance
- Date: Sat, 27 Aug 2011 19:29:36 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=5WeHDTeYZNZOgxRjrvehG7njGXl7om0OxccxUtHDkSQ=; b=iiBC2d8cYI4Zgaor7I9hn/UT196oI9TvGBF+7fh8Zxnr7uEoTV7dOsodeGbl+t9c5n XPEuhP1DVzC+om/3qc8NXBwcyFl3uiA0ARfz2RmDbgOwK4nFWv6k/Dq5Y9qT0cQKU1H0 8FWHfFcbFEBtd4JSc3LB3wPGYkPAGkbd7DCqs=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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