From 1eaa7fee0d111b999c44385eb4fda1ad604e3606 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 7 Oct 2005 09:30:56 +0000 Subject: 21846: _chmod was too greedy with initial arguments --- ChangeLog | 5 +++++ Completion/Unix/Command/_chmod | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d8482d70a..b082f2c0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-07 Peter Stephenson + + * 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 * 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 -- cgit 1.4.1