X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=G1Ht ydfETgFGbGt4rLGnOt7zl5ZU7HLZJH9Y664gNDHn3pYpen6hFQetTH6PPe2uv0cM Rrwu3PSoTCuPqYPytyFQXdwzOXWtiXODCfvPKF/OGQ/ofL6HkMPIMkZ07jr7bdSB z7LZWLKjXF+lanTwoEHGvMbhZVJWl1I07vd2NwU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=mMswG8KkeH Tk9mFUUuOx+J0EKtk=; b=RbHa00JdmT8C5HGrfLZF56kRDzABehT58al2LIzlEy wO33aQd+W8ncDEucIvT1gW88x4HpnMKhAaLNleaslHIi4HLS0c2YjXf2h1ya7cOs QXPYV5oYUu2Kh6tXVs0bkQpktI9XIayGZMQsXoC/0BFFif99GpEWG+kGfbN4P2Vr 4= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 778E2C04B923 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=eblake AT redhat DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 778E2C04B923 Subject: Re: find / without traversing /proc To: cygwin AT cygwin DOT com References: <380-22017442784921354 AT M2W161 DOT mail2web DOT com> <1188853682 DOT 20170428041153 AT yandex DOT ru> <2d6ad098-c844-bf4b-0afd-7631cad2b2b7 AT redhat DOT com> <863911038 DOT 20170429033200 AT yandex DOT ru> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: Date: Sat, 29 Apr 2017 10:11:02 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <863911038.20170429033200@yandex.ru> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="AOW3snA38x3tSM8UsMaVF7I6ElmcQw6NQ" X-IsSubscribed: yes --AOW3snA38x3tSM8UsMaVF7I6ElmcQw6NQ Content-Type: multipart/mixed; boundary="CcwxOjqk2MvGUIt4slnDAmVLLxLVU5wFc"; protected-headers="v1" From: Eric Blake To: cygwin AT cygwin DOT com Message-ID: Subject: Re: find / without traversing /proc References: <380-22017442784921354 AT M2W161 DOT mail2web DOT com> <1188853682 DOT 20170428041153 AT yandex DOT ru> <2d6ad098-c844-bf4b-0afd-7631cad2b2b7 AT redhat DOT com> <863911038 DOT 20170429033200 AT yandex DOT ru> In-Reply-To: <863911038 DOT 20170429033200 AT yandex DOT ru> --CcwxOjqk2MvGUIt4slnDAmVLLxLVU5wFc Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/28/2017 07:32 PM, Andrey Repin wrote: > Greetings, Eric Blake! >=20 >> On 04/27/2017 08:11 PM, Andrey Repin wrote: >=20 >>> >>>> 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. >=20 >> Huh? find -xdev is specified by POSIX, so it's portable: >=20 >> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html >=20 > 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): http://pubs.opengroup.org/onlinepubs/009695399/utilities/find.html > 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. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --CcwxOjqk2MvGUIt4slnDAmVLLxLVU5wFc-- --AOW3snA38x3tSM8UsMaVF7I6ElmcQw6NQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJZBK0GAAoJEKeha0olJ0Nq1CcH/iVXx3/4+Cv7g9fghHqRI8k6 H0okdipupuImIJZrFON+tKn07jvhd5rdZ+X8IP/r3BOoBVA3wm3Q7MiHXVWbUn0Z svykPq8jaLD+4o7gIOCTPimKVTRv5ikvUkBT4AoXAYQ2/G3brsfr0fQgEjQoZLVQ J2CkNjwt6Lp2uAL0O1NDTqGwZ8gsPoRGEmDjdcfjq1uBUpTRycAugNNi2QdiMdlK rBssRIfTloP+1Y4SVyrBp2Y4k2q3ahn9FTcPEJ9ZV/KXx+71gby1mB9G6mbZB72a VR3LaevKngrtd1ep39NN7wqZspE0s0TWvroPa8O5W0EMsCWsZ5fpx8IiBF9hK5w= =vexE -----END PGP SIGNATURE----- --AOW3snA38x3tSM8UsMaVF7I6ElmcQw6NQ--