bug-grep
[Top][All Lists]
Advanced

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

[bug #25197] grep -R defaults to stdin, not the current directory


From: Paolo Bonzini
Subject: [bug #25197] grep -R defaults to stdin, not the current directory
Date: Fri, 04 Dec 2009 23:28:39 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091105 Fedora/3.5.5-1.fc12 Firefox/3.5.5

Follow-up Comment #5, bug #25197 (project grep):

Sorry for being a bit too terse.  The main reason why this cannot be changed
is interoperability.  Even though POSIX does not include -r, other grep
implementations such as NetBSD grep do, and it would be bad to break
compatibility with it (as well as with scripts written in the past ~20 years).
 I do see the point in your proposal, but it's not really feasible to go
beyond warning.

> As another example, note that the git project's 'git grep'
> defaults to the current directory without a '.' argument.

This is different; git grep does not have a non-recursive mode (AFAICT) and
cannot ever get its input from stdin.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?25197>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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