From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6894 invoked from network); 5 Jun 2000 01:13:59 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 5 Jun 2000 01:13:59 -0000 Received: (qmail 15174 invoked by alias); 5 Jun 2000 01:13:46 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11742 Received: (qmail 15165 invoked from network); 5 Jun 2000 01:13:43 -0000 From: "Bart Schaefer" Message-Id: <1000605011323.ZM20247@candle.brasslantern.com> Date: Mon, 5 Jun 2000 01:13:23 +0000 In-Reply-To: <20000604170900.A22841@scowler.net> Comments: In reply to Clint Adams "Re: PATCH: complete rpm --{resign,addsign} in local" (Jun 4, 5:09pm) References: <20000604170900.A22841@scowler.net> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: complete rpm --{resign,addsign} in local MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 4, 5:09pm, Clint Adams wrote: } Subject: Re: PATCH: complete rpm --{resign,addsign} in local } } > Index: Completion/Linux/_rpm } } zsh is still completing filenames directly after rpm -qcp or -qpc, } with no space, FWIW. This is problematic. Currently _rpm uses `-p+' as the spec for the -p option. That means that anything that will follow the -p (including package file name) is allowed to appear in the same word, or in the next word. If we remove the `+', then "rpm -qpc" doesn't match the spec `-p', and so completion doesn't enter the `package_file' state -- it instead enters the `package_or_file' state (the default spec from the `query' state). If there's a clever workaround for this, I don't know it. (Perhaps this is an indication of some lingering bugginess with `_arguments -s'?) -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net