bug-grep
[Top][All Lists]
Advanced

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

Re: Emulating old -r functionality.


From: Jim Meyering
Subject: Re: Emulating old -r functionality.
Date: Wed, 19 Dec 2012 19:10:10 +0100

Stefano Lattarini wrote:
> On 12/19/2012 05:44 PM, Paolo Bonzini wrote:
>>
>> [SNIP]
>>
>> ** New features
>>
>>   If no file operand is given, and a command-line -r or equivalent
>>   option is given, grep now searches the working directory.  Formerly
>>   grep ignored the -r and searched standard input nonrecursively.
>>   An -r found in GREP_OPTIONS does not have this new effect.
>>
>> I would be in favor of reverting the patch.  I never liked the idea.
>>
>> Paolo
>>
> FWIW (speaking as a humble user here) I do like that new behaviour,
> and I'd prefer not to see it reverted.

I find the new behavior more useful, too.

Before its addition, I would sometimes type "grep -r PATTERN", and it
would take a few seconds for me to realize the lack of output was not due
to a big directory with no matches, but due to that old grep waiting for
something on standard input.  That was frustrating, so I do appreciate
the new behavior and would like to retain it.



reply via email to

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