From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24125 invoked from network); 8 Sep 1999 00:46:57 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Sep 1999 00:46:57 -0000 Received: (qmail 12367 invoked by alias); 8 Sep 1999 00:46:48 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7709 Received: (qmail 12360 invoked from network); 8 Sep 1999 00:46:46 -0000 From: "Bart Schaefer" Message-Id: <990908004632.ZM11891@candle.brasslantern.com> Date: Wed, 8 Sep 1999 00:46:32 +0000 In-Reply-To: Comments: In reply to Tanaka Akira "Re: PATCH: Completion/User/_cvs again." (Sep 8, 7:58am) References: <199909070717.JAA03524@beta.informatik.hu-berlin.de> <990907222631.ZM11028@candle.brasslantern.com> X-Mailer: Z-Mail Lite (5.0.0 30July97) To: Tanaka Akira , zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Completion/User/_cvs again. MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Sep 8, 7:58am, Tanaka Akira wrote: > Subject: Re: PATCH: Completion/User/_cvs again. > In article <990907222631.ZM11028@candle.brasslantern.com>, > "Bart Schaefer" writes: > > > maybe a bit less readable ... > > + _cvs_"${${(k)cmds[(R)* $words[1] *]}:-${words[1]:#*~(${(@kj:|:)~cmds})}}" I think we've just gone from "a bit" to "a lot". How about: Index: Completion/User/_cvs =================================================================== @@ -35,7 +35,7 @@ if (( CURRENT == 1 )); then compadd "$@" ${(k)cmds} || compadd "$@" ${(kv)=cmds} else - _cvs_"${${(k)cmds[(R)* $words[1] *]}:-${words[1]:#*~(${(@kj:|:)~cmds})}}" + _cvs_"${${(k)cmds[(R)* $words[1] *]}:-${(k)cmds[(i)$words[1]]}}" fi }