[Top][All Lists]

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

[bug #17623] grep -R should NOT follow symlinks

From: Jim Meyering
Subject: [bug #17623] grep -R should NOT follow symlinks
Date: Tue, 22 Dec 2009 20:31:02 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20091216 Fedora/3.5.6-1.fc12 Firefox/3.5.6

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
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:


  Message sent via/by Savannah

reply via email to

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