Follow-up Comment #2, bug #17623 (project grep):
Hi Paolo,
I too have long wished for a way to make grep -R not follow symlinks.
My first thought was to handle it like find, cp, du, ls and chown etc.
have done, with their -H, -L and -P options, but all of those are already
in use with grep.
One approach would be to extend
--directories=...
or some new long-option to accept three new values,
corresponding to these (useful only with --recursive, which is
equivalent to --directory=recurse, or perhaps implying that):
H traverse-command-line-symlink-to-dir
L traverse-every-symlink-to-dir
P traverse-no-symlink-to-dir
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?17623>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/