From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 775 invoked from network); 18 Mar 2000 20:00:46 -0000 Received: from postoffice.telstra.net (HELO tpostoffice.telstra.net) (203.50.1.76) by ns1.primenet.com.au with SMTP; 18 Mar 2000 20:00:46 -0000 Received: from sunsite.auc.dk (sunsite.auc.dk [130.225.51.30]) by tpostoffice.telstra.net (8.9.3/8.9.3) with SMTP id GAA35441 for ; Sun, 19 Mar 2000 06:22:39 +1100 (EST) (envelope-from zsh-workers-return-10167-mason-zsh=primenet.com.au@sunsite.auc.dk) Received: (qmail 28832 invoked by alias); 18 Mar 2000 19:20:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10167 Received: (qmail 28816 invoked from network); 18 Mar 2000 19:20:34 -0000 From: "Bart Schaefer" Message-Id: <1000318191936.ZM7999@candle.brasslantern.com> Date: Sat, 18 Mar 2000 19:19:36 +0000 In-Reply-To: <38D3CFDB.6DD75999@u.genie.co.uk> Comments: In reply to Oliver Kiddle "PATCH: _xt_arguments and new _nedit" (Mar 18, 6:50pm) References: <38D3CFDB.6DD75999@u.genie.co.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: Oliver Kiddle , Zsh workers Subject: Re: PATCH: _xt_arguments and new _nedit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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