From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11005 invoked by alias); 27 Apr 2017 08:46:06 -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 10922 invoked by uid 89); 27 Apr 2017 08:46:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=BAYES_50,GIT_PATCH_2,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=HContent-type:iso-8859-1, incorporate, surfing, HContent-type:plain X-HELO: xsmtp10.mail2web.com Received: from xsmtp10.mail2web.com (HELO xsmtp10.mail2web.com) (168.144.250.227) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 27 Apr 2017 08:46:03 +0000 Received: from [10.5.41.161] (helo=M2W161.mail2web.com) by xsmtp10.mail2web.com with smtp (Exim 4.63) (envelope-from ) id 1d3f3q-0007dM-D9; Thu, 27 Apr 2017 04:46:03 -0400 Message-ID: <380-22017442784921354@M2W161.mail2web.com> Reply-To: X-URL: https://mail2web.com/ From: "bonhard@uklinux.net" To: cygwin@cygwin.com Cc: fergus@bonhard.uklinux.net Date: Thu, 27 Apr 2017 16:31:00 -0000 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Subject: find / without traversing /proc X-SW-Source: 2017-04/txt/msg00348.txt.bz2 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=3Dsomething= ", 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? -------------------------------------------------------------------- mail2web - Check your email from the web at https://link.mail2web.com/mail2web -- 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