From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121614 invoked by alias); 27 Apr 2017 09:22:44 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 121511 invoked by uid 89); 27 Apr 2017 09:22:43 -0000 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 Received: from mail-wm0-f49.google.com (HELO mail-wm0-f49.google.com) (74.125.82.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Apr 2017 09:22:42 +0000 Received: by mail-wm0-f49.google.com with SMTP id r190so12330820wme.1 for ; Thu, 27 Apr 2017 02:22:43 -0700 (PDT) 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 Received: by 10.80.146.247 with HTTP; Thu, 27 Apr 2017 02:22:41 -0700 (PDT) In-Reply-To: <380-22017442784921354@M2W161.mail2web.com> References: <380-22017442784921354@M2W161.mail2web.com> From: =?UTF-8?Q?V=C3=A1clav_Haisman?= Date: Thu, 27 Apr 2017 17:16:00 -0000 Message-ID: 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 X-SW-Source: 2017-04/txt/msg00349.txt.bz2 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