From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14348 invoked from network); 29 Apr 2000 17:39:27 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 29 Apr 2000 17:39:27 -0000 Received: (qmail 11187 invoked by alias); 29 Apr 2000 17:39:19 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11018 Received: (qmail 11165 invoked from network); 29 Apr 2000 17:39:18 -0000 From: "Bart Schaefer" Message-Id: <1000429173906.ZM32406@candle.brasslantern.com> Date: Sat, 29 Apr 2000 17:39:06 +0000 In-Reply-To: <20000429135806.A2543@thelonious.new.ox.ac.uk> Comments: In reply to Adam Spiers "_find or _users broken?" (Apr 29, 1:58pm) References: <20000429135806.A2543@thelonious.new.ox.ac.uk> X-Mailer: Z-Mail (5.0.0 30July97) To: Adam Spiers , zsh workers mailing list Subject: Re: _find or _users broken? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 29, 1:58pm, Adam Spiers wrote: } Subject: _find or _users broken? } } $ find -user } ---- user } ---- directory } } $ find ! -user } ---- directory } } } Why is it completing directories at all? And when it completes users } and directories, why are the users listed under the directory group? That part must have something to do with your settings. The final clause of the _arguments call in _find is to complete directories when nothing else matches. There is something going wrong, though: zagzig[103] find -user Completing user (list of users only) zagzig[103] find /tmp -user (feep, no completions) This (and your case with `!') appears to happen because comparguments believes the list of options to have been finished when /tmp was put on the line, i.e., it doesn't deal well with commands whose options follow a list of non-option arguments. It may be necessary to rewrite _find using _regex_arguments, or to go to a state-machine rather than a simple usage of _arguments. I'm not yet clever enough with _arguments to figure out a workaround, and I'm totally unfamiliar with _regex_arguments. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com