Doesn't find know enough not to follow symlinks to directories?

Indeed, by default, it does not follow symlinks to directories.

    I would think it ought to.

        find / -P -name FOO

    What does -P do?  I don't see it in the documentation of find
    on my machine.

It's in the info manual, although it's not in the --help output (I'll
tell the maintainer):

     Three options can precede the list of files.  They determine the way
  that symbolic links are handled.

  `-P'
       Never follow symbolic links (this is the default), except in the
       case of the `-xtype' predicate.

  `-L'
       Always follow symbolic links, except in the case of the `-xtype'
       predicate.

  `-H'
       Follow symbolic links specified in the list of files to search, or
       which are otherwise specified on the command line.


_______________________________________________
Bug-hurd mailing list
Bug-hurd@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-hurd

Reply via email to