Date: Sun, 2 May 2004 13:28:32 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: "David O'Brien" <obrien@FreeBSD.org> Cc: Kris Kennaway <kris@obsecurity.org> Subject: Re: code cleanup Message-ID: <20040502131444.N1806@gamplex.bde.org> In-Reply-To: <20040502002832.GA6623@dragon.nuxi.com> References: <200404291855.i3TItUTr048530@green.homeunix.org> <20040430231553.X15963@gamplex.bde.org> <20040502002832.GA6623@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040502131444.N1806>