[Yum-devel] [PATCH] Add a grep command, so _maybe_ people will stop doing: yum list | grep -i foo
seth vidal
skvidal at fedoraproject.org
Mon Aug 16 15:01:39 UTC 2010
On Mon, 2010-08-16 at 10:53 -0400, James Antill wrote:
> ---
> docs/yum.8 | 7 +++++++
> yumcommands.py | 14 +++++++++++++-
> 2 files changed, 20 insertions(+), 1 deletions(-)
>
> diff --git a/docs/yum.8 b/docs/yum.8
> index 281bf17..dddc419 100644
> --- a/docs/yum.8
> +++ b/docs/yum.8
> @@ -33,6 +33,8 @@ gnome\-packagekit application\&.
> .br
> .I \fR * list [\&.\&.\&.]
> .br
> +.I \fR * grep [\&.\&.\&.]
> +.br
> .I \fR * info [\&.\&.\&.]
> .br
> .I \fR * provides | whatprovides feature1 [feature2] [\&.\&.\&.]
> @@ -149,6 +151,11 @@ Is used to list various information about available
> packages; more complete details are available in the \fIList Options\fP
> section below\&.
> .IP
> +.IP "\fBgrep\fP"
> +This works by adding '*' to the begining and end of all arguments, and then
> +running the "list" command. This is intended to be a replacement for
> +people doing: "yum list | grep -i".
> +.IP
This is a bit misleading if only b/c the most common use case of:
yum list | grep something
for me is to match against reponame.
also - since it doesn't use any of the REGULAR EXPRESSION semantics it
feels wrong calling it that.
I think barring the above it would probably be just extra code w/o a
good use.
-sv
More information about the Yum-devel
mailing list