grep is always recursive
matthew.flaschen at gatech.edu
Wed Jan 28 02:13:40 UTC 2009
Lorenzo Luengo wrote:
> The problem comes from the bash * expansion that makes grep see that
> filename as an option. Is it a bash problem? Is it a grep problem??
> Don't know...
It's a "design decision", and it's not going to be changed any time soon
(READ: ever). However, the given workarounds do work reliably.
$ grep "lala" *
$ grep -- "lala" *
will cause the option-looking directory to be ignored.
More information about the ubuntu-users