[Top][All Lists]

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

Re: grep: default file if -r is used

From: Paul Jarc
Subject: Re: grep: default file if -r is used
Date: Thu, 10 Jun 2004 22:04:45 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Paul Eggert <address@hidden> wrote:
> The default should not depend on the form used to specify recursion.
> The point is that, if recursion is specified, it's not reasonable
> for grep to recurse on the standard input, so we might as well use a
> better default in that case, namely ".".

Couldn't that break existing code?  If GREP_OPTIONS=-r happens to be
set in the environment when a script runs "whatever | grep pattern",
grep should still read stdin.


reply via email to

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