In message <199901180357.taa22...@vashon.polstra.com>, John Polstra wrote:
} In article <36a0fc11.8b22d...@cybercable.fr>,
} Thierry Herbelot  <herbe...@cybercable.fr> 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.  

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  
   hamil...@pobox.com


To Unsubscribe: send mail to majord...@freebsd.org
with "unsubscribe freebsd-current" in the body of the message

Reply via email to