Re: code cleanup

From: Bruce Evans <bde_at_zeta.org.au>
Date: Sun, 2 May 2004 13:28:32 +1000 (EST)
On Sat, 1 May 2004, David O'Brien wrote:

> On Fri, Apr 30, 2004 at 11:28:09PM +1000, Bruce Evans wrote:
> > so I don't have any object files under /sys to slow down the search,
> > except grep -r would follow this symlink too.
> >
> > Perhaps it is a bug for grep -r to follow symlinks by default, especially
> > since there is no way to change the default and whether symlinks are
> > followed is not mentioned in the man page.
>
> '-R' is an undocumented alias for '-r'.  Perhaps we could turn '-R' into
> '-r' but not following symlinks.

I think all utilities that recurse (and some that don't) should support
the POSIX -R [-H | -L | -P] flags like cp, and strongly deprecate -r
like cp.  This gives a superset of the above behaviour.

Bruce
Received on Sat May 01 2004 - 18:28:44 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:52 UTC