From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25032 invoked from network); 24 May 2000 04:42:15 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 24 May 2000 04:42:15 -0000 Received: (qmail 9002 invoked by alias); 24 May 2000 04:42:09 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11547 Received: (qmail 8995 invoked from network); 24 May 2000 04:42:08 -0000 From: "Bart Schaefer" Message-Id: <1000524044159.ZM1510@candle.brasslantern.com> Date: Wed, 24 May 2000 04:41:58 +0000 In-Reply-To: <20000523200227.A11961@scowler.net> Comments: In reply to Clint Adams "_rpm odd behavior" (May 23, 8:02pm) References: <20000523200227.A11961@scowler.net> X-Mailer: Z-Mail (5.0.0 30July97) To: Clint Adams , zsh-workers@sunsite.auc.dk Subject: Re: _rpm odd behavior MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On May 23, 8:02pm, Clint Adams wrote: } Subject: _rpm odd behavior } } Disclaimer: I know next to nothing about rpm. } } I have no RPM database, but rpm -qcp shouldn't need one. } I believe that the behavior in case 3 is the correct one. } What's going on? For some reason the `_arguments -s ...' in the `query' state handler (line 97 in _rpm) is not finding the -p option, and so instead is using the spec '*:RPM package:->package_or_file' which causes _rpm to attempt to run 'rpm -qa' to get a list of all installed packages on the system. At first I thought this was because you used "rpm -qcp" and -c is not listed by _rpm as a valid option in the `query' state (even though it should be); but even "rpm -qp" doesn't work, only "rpm -q -p" gets it right. Is it a new problem that _arguments has trouble dealing with multiple single-letter options packed in the same word? -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com