Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion bug: chmod +rX



On Thu, Oct 06, 2005 at 11:29:02PM +0200, Ignacy Gawedzki wrote:

> Has anyone any idea or suggestion?

This patch should do.

--- Completion/Unix/Command/_chmod.old	2005-10-07 00:46:41.000000000 +0200
+++ Completion/Unix/Command/_chmod	2005-10-07 00:49:34.000000000 +0200
@@ -67,7 +67,7 @@
       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


-- 
Stephen Rüger
stephen.rueger@xxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author