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:message-id:reply-to:from:to:cc:date :mime-version:content-type:content-transfer-encoding:subject; q= dns; s=default; b=Wob2Mu3VWHJKOWnN5UXlrt5mKtlyvmbWYewS4nUT6AeQO4 8zGMfDIZG8hLskXoXzz8R/5QBfTfi0Rkd3mXpTHa+rZpy8a9BgDotzWmNeeYxjYp 6jAXNfY2hha8aW5bhPRl0ZGepuThPHkxONNqDKQ0fYjNbkuA84uSFd4f6oVZI= 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:message-id:reply-to:from:to:cc:date :mime-version:content-type:content-transfer-encoding:subject; s= default; bh=WIf8x870HhEmzDuJbrRxf0zawKw=; b=tMqarYd95IpSwbAk4PgQ tMMb2EImDXLox5qlSVfB+smyK1nsg09Db7o8fkYVooaLC9efM2drzuy8U/kHoFMA WB73Q/ULxvuA0D5GvA1jnhie647OcMbK8i69w/bjx26+4PxUvcF6oJhjT62z5ANE r8PnPBx6XAWNUK97SDWhwBc= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-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 Message-ID: <380-22017442784921354@M2W161.mail2web.com> Reply-To: X-URL: https://mail2web.com/ From: "bonhard AT uklinux DOT net" To: cygwin AT cygwin DOT com Cc: fergus AT bonhard DOT uklinux DOT net Date: Thu, 27 Apr 2017 04:49:21 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Subject: find / without traversing /proc Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id v3R8kMxR028226 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? -------------------------------------------------------------------- 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