delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/04/28/06:05:20

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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; q=dns; s=default; b=csMcjf444rkVnl3Q
yV7aUBcAG/bC/pu0RQeEK4a2sjcvLpvm/JkvvZQS7hA+6PnCfkRiFH95/zf4/zrU
XWOpKvk9ts6PLmFRyJLCJsJFpKkmhmAst0WNVCEeHSJeT1YCgPI6wk0tnLVxCY/v
C1RTtDnIZKxpXgLfuRMSWK4uyPo=
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:date:from:reply-to:message-id:to:subject
:in-reply-to:references:mime-version:content-type
:content-transfer-encoding; s=default; bh=UJJ5nSBdSkZ+GBHxZvuU5F
Ss3xs=; b=OcAIjjSIHiJpwX8AoXoU2HqoqgWNoLmts2nBEW0VRCe23BehSUq83V
QlmhiOH94hRiKS7HIPHzQMMct5gj9SU10tgzdGqwaZIHp1Ync9BgVRL40YysU9C0
kHpF9m151uIqSctKjL+TuiDTzcuXg6phn9v88ioAA1Coo2z1bm8oQ=
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=2.2 required=5.0 tests=AWL,BAYES_05,DATE_IN_PAST_06_12,FREEMAIL_FROM,KAM_THEBAT,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=H*M:yandex, H*F:D*yandex.ru, H*x:Bat!, H*UA:Bat!
X-HELO: forward3j.cmail.yandex.net
Authentication-Results: smtp3m.mail.yandex.net; dkim=pass header.i=@yandex.ru
X-Yandex-Suid-Status: 1 0,1 0
Date: Fri, 28 Apr 2017 04:11:53 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1188853682.20170428041153@yandex.ru>
To: =?utf-8?Q?V=C3=A1clav_Haisman?= <vhaisman AT gmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: find / without traversing /proc
In-Reply-To: <CAKw7uVix05wZvX=in08fjvNWwZb_DUYmYbeTn5XXOBdedNd5DQ@mail.gmail.com>
References: <380-22017442784921354 AT M2W161 DOT mail2web DOT com> <CAKw7uVix05wZvX=in08fjvNWwZb_DUYmYbeTn5XXOBdedNd5DQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v3SA5JBh019506

Greetings, Václav Haisman!

> On 27 April 2017 at 10:49, wrote:
>> The command "find /" takes forever, if it completes at all, because of the
>> need to traverse the induced directory /proc. Is this directory often
>> needed by users? Can it be skipped by setting up "export CYGWIN=something",
>> or even by default, with the requirement on the user to induce it if needed?
>> There seems to be no switch to the command find that would easily allow
>> "but not this subdirectory": if there was, I wouldn't be asking. Quite a
>> lot of surfing led me to
>> $ find / \( -wholename /proc -o -wholename /dev \) -prune -o -print
>> which is really heavyweight syntax for a simple requirement. I am pretty
>> certain it leads to the behaviour required "do not traverse" though various
>> posters seem to think it just leads to "traverse but do not report" saving
>> almost nothing.
>> Assuming the syntax is correct, I have not been able to incorporate any
>> qualifiers such as -type d or -type f or -type l. Any ideas where to slot
>> these so that they work?

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


-- 
With best regards,
Andrey Repin
Friday, April 28, 2017 04:10:57

Sorry for my terrible english...
--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019