From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10169 invoked from network); 21 Nov 1999 05:13:09 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Nov 1999 05:13:09 -0000 Received: (qmail 17913 invoked by alias); 21 Nov 1999 05:13:03 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8700 Received: (qmail 17906 invoked from network); 21 Nov 1999 05:13:02 -0000 From: "Bart Schaefer" Message-Id: <991121051258.ZM16504@candle.brasslantern.com> Date: Sun, 21 Nov 1999 05:12:58 +0000 In-Reply-To: Comments: In reply to Tanaka Akira "Re: PATCH: Re: cvs dumps core." (Nov 21, 1:07pm) References: <991120193846.ZM14808@candle.brasslantern.com> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Re: cvs dumps core. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 21, 1:07pm, Tanaka Akira wrote: } Subject: Re: PATCH: Re: cvs dumps core. } } Z:akr@is27e1u11% Src/zsh -f } is27e1u11% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst } is27e1u11% cvs } CVS/ Src/ commit init rtag } Completion/ StartupFiles/ diff log status } Config/ Util/ edit login tag } Doc/ add editors logout unedit } Etc/ admin export rdiff update } Functions/ annotate history release watch } Misc/ checkout import remove watchers } } Wow. filenames shouldn't listed. It's only directory names, and it's related to: } is27e1u11% cvs --allow-root=CVS/ } } Of cause, the option `--allow-root' shouldn't completed. If you do compstyle '*:descriptions' format '%d' before trying "cvs ", you'll see that it says cvs command rootdir So it's listing directories to be the argument of --allow-root=. This in turn is because _arguments at line 299 is calling compadd -M -D equal - --allow_root and then setting IPREFIX to --allow-root= at line 304, etc. However, it's beyond my understanding of the interaction between _arguments and comparguments to tell how it got into that state in the first place. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com