[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A bug in grep-command or I'm a bug.

From: Bob Proulx
Subject: Re: A bug in grep-command or I'm a bug.
Date: Wed, 23 May 2007 08:47:09 -0600
User-agent: Mutt/1.5.9i

Henning Kvello-Aune wrote:
> address@hidden ~]$ rpm -qa | grep ftp*

The command line shell will expand the '*' in the ftp* above to match
any filenames in the current directory.  Therefore leaving it unquoted
is incorrect.  It will create data dependent problems depending upon
what files are in the directory at the time that the file glob is

You can test yourself what the grep command would see by using echo.

  echo grep ftp*

Here is the corrected command.

  rpm -qa | grep "ftp*"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]