delorie.com/archives/browse.cgi | search |
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=yeq7 | |
8z8SJNsm5DzoxARexXlg4PZ2/TAWzWIt5E60Ngafwx6AhGGt5FFgbP8BHILWKECk | |
T0zyXRftWqb7H6/ohS44IXgGHDHOFEeXhhyluXqpKlp8myyiOFyoIiXjsd9QCxl+ | |
aEbkTo5eK6I/ERWaV1v29jzyDbJ30xP8EeWjQsY= | |
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=cBxUl3ConG | |
gbHYQ89UUMmd9bDG8=; b=u9/DwZt7MrtNNYzCQqWVV2lPbWhYZkEPP+NVkcehs1 | |
UJ/JKj9Y898brPDVyGCO9dvcF7n1sTx+moX7Mz0DxoRHRWuLOBj2UiDLu7v02pC6 | |
4zZd4BiLYOl6fceJc4+nq4uDd8gwtGQ8bGM2P9H/hVc4rPrgJv3bOmj5zF7PPnGb | |
4= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=descending, Repin, andrey, repin |
X-HELO: | mx1.redhat.com |
DMARC-Filter: | OpenDMARC Filter v1.3.2 mx1.redhat.com CA76F61BB8 |
Authentication-Results: | ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com |
Authentication-Results: | ext-mx10.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 CA76F61BB8 |
Subject: | Re: find / without traversing /proc |
To: | cygwin AT cygwin DOT com |
References: | <380-22017442784921354 AT M2W161 DOT mail2web DOT com> <CAKw7uVix05wZvX=in08fjvNWwZb_DUYmYbeTn5XXOBdedNd5DQ AT mail DOT gmail DOT com> <1188853682 DOT 20170428041153 AT yandex DOT ru> |
From: | Eric Blake <eblake AT redhat DOT com> |
Openpgp: | url=http://people.redhat.com/eblake/eblake.gpg |
Message-ID: | <2d6ad098-c844-bf4b-0afd-7631cad2b2b7@redhat.com> |
Date: | Fri, 28 Apr 2017 09:07:53 -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: | <1188853682.20170428041153@yandex.ru> |
X-IsSubscribed: | yes |
--p5HmXXwG8CRp2sOAIFsvf9e4nrfQBVAjO Content-Type: multipart/mixed; boundary="UJtkDrCNula01xdVuVurs0vXOWdJXuVrG"; protected-headers="v1" From: Eric Blake <eblake AT redhat DOT com> To: cygwin AT cygwin DOT com Message-ID: <2d6ad098-c844-bf4b-0afd-7631cad2b2b7 AT redhat DOT com> Subject: Re: find / without traversing /proc References: <380-22017442784921354 AT M2W161 DOT mail2web DOT com> <CAKw7uVix05wZvX=in08fjvNWwZb_DUYmYbeTn5XXOBdedNd5DQ AT mail DOT gmail DOT com> <1188853682 DOT 20170428041153 AT yandex DOT ru> In-Reply-To: <1188853682 DOT 20170428041153 AT yandex DOT ru> --UJtkDrCNula01xdVuVurs0vXOWdJXuVrG Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 04/27/2017 08:11 PM, Andrey Repin wrote: >=20 >> Doesn't the -xdev switch help with this? >=20 > Just keep in mind that -xdev is an extension and different platform may u= se 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. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org --UJtkDrCNula01xdVuVurs0vXOWdJXuVrG-- --p5HmXXwG8CRp2sOAIFsvf9e4nrfQBVAjO 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/ iQEcBAEBCAAGBQJZA0y6AAoJEKeha0olJ0NqkWgH/2iWimitORC2YLnb/rcAF5rw 4oFkkMO+8GAeq6w+M2TdL4FtcgeM+vJk2yHHrjZl8FQlEfY4xnWkx0puHcloDEvM 2mijEkQKkGjeriy2IzJJeWe6GfURWGFNX0viP4Xfkw35cNEL5nvPk4mBkp+DM7AS ANYn5fGcQumXqX3KDVSFaAMDSk6SMz/o+cGwSGejse1OVEGEQc5rqbnYalr+Mqj4 y24/bF9TsTqjEceD3eRfGGKt/I2JxYCTF58/nHzoe8TeQbQjRuqPp8Dm3EK9YoXr w9T1EtRBsSIu+tPRWLc69CRfQURyqtHRa3stKef7PR3jM6Ta5vCE+zJMGsKMmrw= =oWJ5 -----END PGP SIGNATURE----- --p5HmXXwG8CRp2sOAIFsvf9e4nrfQBVAjO--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |