X-Recipient: archive-cygwin@delorie.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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc:content-type; q=dns; s=default; b=OP0L
	JIAEvUMltmLyxgAvQtINdMD2YGfec0MYg3l8mvfkdgcCHZEqu8B02coGM3gsFbJc
	/jpX0YnC6hKq4hCsegBFCQmi6FcuitK8cnJls0IfWhcE9RBB/28CctFfnKaFIqDW
	wesEpoayH6rNsYuiZV7yG/Icbf02jEBKLssX7nQ=
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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:cc:content-type; s=default; bh=sBhapmTom9
	1H7TEv5BQpZSjLFc4=; b=hqijeu7lhYZnQJJG54QAnoKe+b6nmUhQhPgvA40R0R
	/BlhAw1MeoyQopi0evOSSOqB4yKFeSTfQQuhKwLerM8tov8qY0leV3vnaH7lzsvI
	HximrpaSv4KTY/U69EDXte3Drcn5oxQXeGWVXMw+zcrx9ryeTKvTj1aoPS/gglR4
	k=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=forever
X-HELO: mail-wm0-f49.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:mime-version:in-reply-to:references:from:date         :message-id:subject:to:cc;        bh=Vh79WMSW8kQm/EHORAr8xzSUdtPy8qH8RiELxpRQ96U=;        b=bDJTKEZUn8jpHOsj4PHjwv65d/gdgVt+wZc0UWKr6hQ9qgNjfV3puUBgTOHO0kPOII         3o6xOi3GtGeCu50HgbrvcgOc/i3hoVasyemlI1FaOp8BP4Lm/d9ZWPgvqHWP6qdLFKaR         0U1OmES6N7SjEWqi/HJgFigwxuQ/G7moGjXt/30FxsNcKg+WK5ucWnTOtoGo373Im9Nu         Lq5c75lHy1VMVlatQnepoKnhh59emZcOn1TH/AoitXKwQkhDev+nwsOJvZ5RCr3SqNEe         +4tBREomP8ewR+jiwhtdy5YEEJcoLBbzGtyjlUMZTAsKGbYmr6AHZ1bIbOwqiLiJAPxQ         s2/g==
X-Gm-Message-State: AN3rC/44IwfoFqDAzbgTWlcyVhkn9rpwG8OzSq4dfI2gRv+NKppLB6iH	9vKXzh7E2ETByd/n6s/cLQcqUAFaUP3/xww=
X-Received: by 10.80.134.208 with SMTP id 16mr3927037edu.67.1493284961916; Thu, 27 Apr 2017 02:22:41 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <380-22017442784921354@M2W161.mail2web.com>
References: <380-22017442784921354@M2W161.mail2web.com>
From: =?UTF-8?Q?V=C3=A1clav_Haisman?= <vhaisman@gmail.com>
Date: Thu, 27 Apr 2017 11:22:41 +0200
Message-ID: <CAKw7uVix05wZvX=in08fjvNWwZb_DUYmYbeTn5XXOBdedNd5DQ@mail.gmail.com>
Subject: Re: find / without traversing /proc
To: cygwin@cygwin.com
Cc: fergus@bonhard.uklinux.net
Content-Type: text/plain; charset=UTF-8
X-IsSubscribed: yes

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?

--VH

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

