bug-grep
[Top][All Lists]
Advanced

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

Re: [PATCH] grep: -r no follows symlinks


From: Jim Meyering
Subject: Re: [PATCH] grep: -r no follows symlinks
Date: Mon, 12 Mar 2012 22:33:49 +0100

Paul Eggert wrote:
> Here's a proposed change to GNU grep so that 'grep -r'
> no longer follows symlinks, and by default does not
> read devices, which is more convenient in the typical
> use case.  Symlinks and devices on the command line are
> still dereferenced; the change affects only symlinks and
> devices encountered recursively.  Users who want dereferencing
> for all files can use -R, which retains its old meaning.
...
> diff --git a/NEWS b/NEWS
...
> +** Changes in behavior
> +
> +  The -r (--recursive) option now follows only command-line symlinks.
> +  Also, by default -r now reads only devices named on the command

That could be misconstrued ;-)
How about this instead:

  Also, by default -r now reads a device only if it is named on the command

Something came up, so this is all for now.



reply via email to

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