bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: grep -R vs. symlinks to directories


From: Paul Eggert
Subject: Re: grep -R vs. symlinks to directories
Date: 14 Jul 2003 13:30:07 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Jim Meyering <address@hidden> writes:

> I really like grep's -R (--recursive) option and use it a lot.
> However, I'm regularly annoyed to see that it makes grep follow symlinks
> to directories.  In my case, that behavior has always been undesirable, so
> I've simply turned it off in my copy.  This should probably be controlled
> by an option.  It's a shame that the -P, -H, and -L options (typically
> used to control how recursion works wrt symlinks) are already taken.
> Maybe --dereference={always,never,command-line}?

I second this.  Also, the default should be --dereference=command-line.
I can compose a patch if you like.




reply via email to

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