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=Cao4m6bqnHcHkz8D WfwJgKueoHmCSrVhzLT+3vX0YFW5uGNWxn9rW/9uX9vqS+8sq4XyIgmEesQO16dG EhInsqDfwRoJI6UtXCSGz2/HzYZey3nZqvzfo3GDaf5dJSNWkqVfDhT4Ht+v685F iQOs0r6qQRK/ojPpN+zmwrS/tho= 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=MV0429CPF3O+NtD5O5ibfH YwNYU=; b=ZEkUu6pUeN694/57XY7BicBEcgaq4bnpNuJxbQIzN3Miq8SsTBMsyJ qe46opuYhV+HC5kyqZe4xe73l3sQfPl6P4ErBdoeUzE1LbSTPdo6Oss0nZr2M7pN 0Ii3L8k47LE7QTVV1sXjaIwU01HQca1f0/NyE0wOCvljKq63wBSI0= 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.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: smtpback.ht-systems.ru Date: Thu, 21 Aug 2014 02:45:55 +0400 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1894749096.20140821024555@yandex.ru> To: mlist AT bogusville DOT us, cygwin AT cygwin DOT com Subject: Re: possible problem with "find . -name blah -o -name blah2" In-Reply-To: <8d384135fd838eaef07b4eb66ab60cae.squirrel@bogusville.us> References: <8d384135fd838eaef07b4eb66ab60cae DOT squirrel AT bogusville DOT us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Greetings, mlist AT bogusville DOT us! > using CYGWIN_NT-6.1, bash 4.1.11(2) and find 4.5.12, the following returns > immediately > find . -name \*.cs -o -name \*.h -o -name \*.cpp -exec ls {} \; > pick your favorite for 'ls' $ uname -a CYGWIN_NT-5.1 daemon2 1.7.32s(0.274/5/3) 20140807 16:26:58 i686 Cygwin $ find . -name \*.cs -o -name \*.h -o -name \*.cpp -exec ls {} \; ./farmanager-read-only/enc/enc_rus/meta/articles/panel/panelplugin.1/desktop.cpp ./farmanager-read-only/enc/enc_rus/meta/articles/panel/panelplugin.1/main.cpp ./farmanager-read-only/enc/enc_rus/meta/articles/panel/panelplugin.1/mix.cpp ./farmanager-read-only/misc/fexcept/execdump/ExcDump.cpp ./farmanager-read-only/misc/fexcept/execdump/test/test.cpp ./farmanager-read-only/misc/fexcept/execdump/xxlib/Std/2asm.cpp > this works as expected > find . -name \*.cs -o -name \*.h -o -name \*.cpp > it's probably not a horrible problem but i thought i'd report it. Can't seems to replicate it on my setup. Do you use 64-bit Cygwin? Discussion aside, please use -execdir rather than -exec to avoid race conditions in a time gap between find's decision to run something and actually running that something. -- WBR, Andrey Repin (anrdaemon AT yandex DOT ru) 21.08.2014, <02:39> 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