about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-10-07 09:30:56 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-10-07 09:30:56 +0000
commit1eaa7fee0d111b999c44385eb4fda1ad604e3606 (patch)
treea1dbf66868b4b5f2060361fe24c8c21c3913e351
parent5ee38b811e4d3a5636edeef8d450424dce54caa8 (diff)
downloadzsh-1eaa7fee0d111b999c44385eb4fda1ad604e3606.tar.gz
zsh-1eaa7fee0d111b999c44385eb4fda1ad604e3606.tar.xz
zsh-1eaa7fee0d111b999c44385eb4fda1ad604e3606.zip
21846: _chmod was too greedy with initial arguments
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_chmod2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d8482d70a..b082f2c0f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-10-07  Peter Stephenson  <pws@csr.com>
+
+	* Stephen RĂ¼ger: 21846: Completion/Unix/Command/_chmod: too
+	greedy looking for r, w, x, s, t in initial arguments to chmod.
+
 2005-10-04  Bart Schaefer  <schaefer@zsh.org>
 
 	* 21822 (annotated): Src/Zle/complist.c: prevent a long-standing
diff --git a/Completion/Unix/Command/_chmod b/Completion/Unix/Command/_chmod
index 1c0e7aadc..3df93fd64 100644
--- a/Completion/Unix/Command/_chmod
+++ b/Completion/Unix/Command/_chmod
@@ -67,7 +67,7 @@ case "$state" in
       local spec who op priv
       local -a specs
       for spec in ${(s:,:)words[2]}; do
-	if [[ ${spec#*[+-=]} != [rwxst]* ]]; then
+	if [[ ${spec#*[+-=]} != [rwxst]## ]]; then
 	  _files && ret=0
 	  return ret
 	fi