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

Re: PATCH: _xt_arguments and new _nedit



On Mar 18,  6:50pm, Oliver Kiddle wrote:
} Subject: PATCH: _xt_arguments and new _nedit
}
} It would be nice if there was a way of using globbing, similar to *(w)
} and *(r) to match files which can be written to by the current process

This should work:	_files -g '*(Uw,GI,W)'

That means "owned by the EUID and owner writable, or owned by the EGID
and group writable, or world writable."  That doesn't quite work with
group lists; for that you'd need something like

	_files -g \*\(Uw,Ig:${(j(:,Ig:))$(groups)}:,W\)


-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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