bug-grep
[Top][All Lists]
Advanced

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

[bug #17623] add option to grep -R to NOT follow symlinks to directory


From: Alexei Colin
Subject: [bug #17623] add option to grep -R to NOT follow symlinks to directory
Date: Tue, 03 Jan 2012 23:32:41 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7

Follow-up Comment #6, bug #17623 (project grep):

This would break compatibility, but distinguishing based on case would be a
simple option: -r/-R. For example, grep in Heirloom
<http://heirloom.sourceforge.net/> seems to be doing that. Afaict, for grep
2.7 -R, -r, --recursive are all the same.

>From Heirloom grep man <http://heirloom.sourceforge.net/man/grep.1.html>:

The following options are supported as extensions:
-r       With this option given, grep does not directly search in each given 
file
that is a directory, but descends it recursively and scans each regular file
found below it. Device files are ignored. Symbolic links are followed.
-R       Operates recursively as with the -r option, but does not follow 
symbolic
links that point to directories unless if they are explicitly specified as
arguments.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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