From owner-freebsd-current Sun Jan 17 22:28:16 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA25429 for freebsd-current-outgoing; Sun, 17 Jan 1999 22:28:16 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from bouvreuil.cybercable.fr (bouvreuil.cybercable.fr [212.198.3.12]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA25423 for ; Sun, 17 Jan 1999 22:28:13 -0800 (PST) (envelope-from herbelot@cybercable.fr) Received: (qmail 17179 invoked from network); 18 Jan 1999 06:28:07 -0000 Received: from d003.paris-21.cybercable.fr (HELO cybercable.fr) (212.198.21.3) by bouvreuil.cybercable.fr with SMTP; 18 Jan 1999 06:28:07 -0000 Message-ID: <36A2D468.1AB416C4@cybercable.fr> Date: Mon, 18 Jan 1999 07:27:52 +0100 From: Thierry Herbelot X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: Jon Hamilton CC: John Polstra , current@FreeBSD.ORG Subject: Re: correction for find(1)'s man page References: <199901180430.UAA10098@hub.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Jon Hamilton wrote: > > In message <199901180357.TAA22127@vashon.polstra.com>, John Polstra wrote: > } In article <36A0FC11.8B22D0F5@cybercable.fr>, > } Thierry Herbelot wrote: > } > Hello > } > > } > I was reading the man page for find(1), looking for the precise option > } > to follow symbolic links. > } > > } > This option is -follow, of course, but it is not described in the man > } > page > } > } Huh? The correct options are the first three options described in > } the man page: > > } -H The -H option causes the file information and file type (see > } stat(2)) returned for each symbolic link specified on the command > } line to be those of the file referenced by the link, not the link > } itself. If the referenced file does not exist, the file informa- > } tion and type will be for the link itself. File information of > } all symbolic links not on the command line is that of the link > } itself. > > What this doesn't explicitly say is that it causes find(1) to actually > follow the symlink and recursively descend the target tree (if the link > points to a directory); I assume that's the behavior the original poster > wanted. Exactly, but this is not clear in he man page (furthermore, -follow is still a valid option and is not documented). TfH > > Near the bottom of the find(1) manpage (on my -stable system), is this: > > Historically, the -d, -h and -x options were implemented using the pri- > maries ``-depth'', ``-follow'', and ``-xdev''. These primaries always > > ``-h'' there should read ``-H''; -h is an unknown option to find(1). > > -- > Jon Hamilton > hamilton@pobox.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message