bug-grep
[Top][All Lists]
Advanced

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

[patch #7147] Recursive should default to current dir instead of stdin


From: Egmont Koblinger
Subject: [patch #7147] Recursive should default to current dir instead of stdin
Date: Wed, 31 Mar 2010 08:52:08 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100217 Firefox/3.5.8

URL:
  <http://savannah.gnu.org/patch/?7147>

                 Summary: Recursive should default to current dir instead of
stdin
                 Project: grep
            Submitted by: egmont
            Submitted on: Wed 31 Mar 2010 08:52:07 AM GMT
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

If no file is specified, grep defaults to reading the standard input, even if
recursion is enabled.  Recursively grepping the stdin doesn't make any sense
to me, it would be much more reasonable to default to the current directory.

I find myself executing the command "grep -r something ." very very often,
usually during development of a large source code tree. I often end up
accidentally omitting the trailing dot, and waiting for grep to do something.
Even if I don't forget it, it's an unnecessary step to type that space-dot.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 31 Mar 2010 08:52:07 AM GMT  Name:
grep-2.6.2-default-is-current-dir-if-recursive.patch  Size: 1kB   By: egmont

<http://savannah.gnu.org/patch/download.php?file_id=20072>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?7147>

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





reply via email to

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