From owner-freebsd-current@FreeBSD.ORG Sat May 1 20:28:44 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C46716A4CF; Sat, 1 May 2004 20:28:44 -0700 (PDT) Received: from mailout1.pacific.net.au (mailout1.pacific.net.au [61.8.0.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2578E43D53; Sat, 1 May 2004 20:28:43 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.0.86])i423Sa4u022349; Sun, 2 May 2004 13:28:36 +1000 Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) i423SYI2015940; Sun, 2 May 2004 13:28:35 +1000 Date: Sun, 2 May 2004 13:28:32 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "David O'Brien" In-Reply-To: <20040502002832.GA6623@dragon.nuxi.com> Message-ID: <20040502131444.N1806@gamplex.bde.org> References: <200404291855.i3TItUTr048530@green.homeunix.org> <20040430231553.X15963@gamplex.bde.org> <20040502002832.GA6623@dragon.nuxi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Julian Elischer cc: freebsd-current@FreeBSD.org cc: Alex Lyashkov cc: Kris Kennaway Subject: Re: code cleanup X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2004 03:28:44 -0000 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