Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _rpm odd behavior
- X-seq: zsh-workers 11547
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: _rpm odd behavior
- Date: Wed, 24 May 2000 04:41:58 +0000
- In-reply-to: <20000523200227.A11961@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000523200227.A11961@xxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author