find / without traversing /proc
Sat Apr 29 00:35:00 GMT 2017
On 04/27/2017 08:11 PM, Andrey Repin wrote:
>> Doesn't the -xdev switch help with this?
> Just keep in mind that -xdev is an extension and different platform may use a
> different way to indicate that find should stick to the current device.
Huh? find -xdev is specified by POSIX, so it's portable:
The primary shall always evaluate as true; it shall cause find not
to continue descending past directories that have a different device ID
(st_dev, see the stat() function defined in the System Interfaces volume
of POSIX.1-2008). If any -xdev primary is specified, it shall apply to
the entire expression even if the -xdev primary would not normally be
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 604 bytes
Desc: OpenPGP digital signature
More information about the Cygwin