This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: find / without traversing /proc


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:

http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html

-xdev
    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
evaluated.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]