Web lists-archives.com

Re: find / without traversing /proc

On 04/28/2017 07:32 PM, Andrey Repin wrote:
> Greetings, Eric Blake!
>> 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
> 2016 edition. It's new. But pleasant.

2016 edition is just technical corrigenda to the 2008 edition. But -xdev
was in the 2001 edition (web page says 2004, as a technical corrigendum
to the 2001 edition, for the same reason as the other web page says 2016):

> Last time I checked it was labeled as GNU extension.

Then you haven't been keeping up with things.  -xdev has been
standardized for a long time.

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

Attachment: signature.asc
Description: OpenPGP digital signature