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

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

Re: grep: default file if -r is used


From: Paul Eggert
Subject: Re: grep: default file if -r is used
Date: Thu, 10 Jun 2004 16:08:04 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Stepan Kasal <address@hidden> writes:

> When GREP_OPTIONS contains --directories=recurse, the default should still
> be `stdin', when grep is called as `grep -r', the default should be `.'.
> But where should the border lie?  Should we decide according to where was
> `-r' specified?  Or according to which form was used (-r, -drecurse, or
> --directories=recurse)?

This shouldn't be a problem.  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
".".




reply via email to

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