First of all, I would like to thank all the people who replied.
List attached below.
Many people provided answers which are correct. They don't work for me
because Solaris find will read into the directory any way, generating an error
if permission is denied, even it is supposed to be skipped. GNU's find
does not bother to read into the directory if it is supposed to be skipped.
I will report this to Sun as a bug.
This behavior is demonstrated by Patrick R. Demorais:
> From: firstname.lastname@example.org (Patrick R. Demorais)
> tricycle:/opt 635$ find . -xdev -name lost+found -prune -o -name core -print
> tricycle:/opt 635$ type find
> find is hashed (/usr/local/bin/find)
> tricycle:/opt 636$ find --version
> GNU find version 4.1
> tricycle:/opt 639$ /bin/find . -xdev -name lost+found -prune -o -name core -print
> /bin/find: cannot read dir ./lost+found: Permission denied
> you might want to switch.
Thanks go to all the people who replied:
Arthur Darren Dunh
Patrick R. Demorai
Ron E. Nelson
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:23 CDT