bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep bug


From: Paul Jarc
Subject: Re: grep bug
Date: Wed, 28 Jun 2006 12:29:38 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

Lars Ångman <address@hidden> wrote:
> grep "-b" foo.bar
>
> the command hangs, i.e. I never get back to the promt. 

-b is interpreted as an option, and foo.bar is interpreted as the
pattern to search for.  Since no apparent filename is given, grep
reads stdin.

You can use "grep -e regexp" to search for a pattern that starts with
"-".  That will stop the pattern from being interpreted as options.


paul




reply via email to

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