about summary refs log tree commit diff
path: root/Completion/Unix/Command
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r--Completion/Unix/Command/_chmod2
1 files changed, 1 insertions, 1 deletions
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