| delorie.com/archives/browse.cgi | search |
| 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:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type; q=dns; s=default; b=ozgCFS | |
| wYxDkBbb35w/R0GedhwWfzrpoXWT4qmqS6IZ0AhkFC+/JgdxWev46n+5ufMQhMI0 | |
| HYKanJlTQvk2MVxZ63vFS/RCOzwSXNiwY5yoe7XrPpU0rsmhTiq8sXL7L/InOWf1 | |
| PX0nuWU5ovvo8t1/0nqDBEaMcAOQpHsJGKQ9E= | |
| 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:date:from:mime-version:to:subject | |
| :references:in-reply-to:content-type; s=default; bh=ltz8xfXeNllA | |
| qgeAa5DwfE7AVD4=; b=qK4rAaon2nbzKtDpfqPf2MNmTZkHds9XgFYzhR1wHFA/ | |
| aVUX0o5YE1Rz2DPo0UA4KMJuiubB/mrKo5K+R7VUuQDgbeEdn3FFy6a9WMhjHus0 | |
| OvMiAL+2cYMLkO8WNMoOhiTRKzC+bC/FtvNy8sSdOCA/b0d8YMIOXAKut7l1bSk= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| 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=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
| X-HELO: | mx1.redhat.com |
| Message-ID: | <53F5E2E0.8060102@redhat.com> |
| Date: | Thu, 21 Aug 2014 06:15:28 -0600 |
| From: | Eric Blake <eblake AT redhat DOT com> |
| User-Agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0 |
| MIME-Version: | 1.0 |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: possible problem with "find . -name blah -o -name blah2" |
| References: | <8d384135fd838eaef07b4eb66ab60cae DOT squirrel AT bogusville DOT us> |
| In-Reply-To: | <8d384135fd838eaef07b4eb66ab60cae.squirrel@bogusville.us> |
| OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
| X-IsSubscribed: | yes |
--EuLljuTjDFcgcj2ChbLgUj9S2x1GmQxQt
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On 08/20/2014 02:58 PM, mlist AT bogusville DOT us wrote:
> using CYGWIN_NT-6.1, bash 4.1.11(2) and find 4.5.12, the following returns
> immediately
>=20
> find . -name \*.cs -o -name \*.h -o -name \*.cpp -exec ls {} \;
This parses as:
find . -name \*.cs -o -name \*.h -o \( -name \*.cpp -exec ls {} \; \)
>=20
> pick your favorite for 'ls'
>=20
> this works as expected
>=20
> find . -name \*.cs -o -name \*.h -o -name \*.cpp
This parses as:
find . \( -name \*.cs -o -name \*.h -o -name \*.cpp \) -print
>=20
> it's probably not a horrible problem but i thought i'd report it.
Not a bug. Same POSIX-mandated behavior on all platforms.
--=20
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
--EuLljuTjDFcgcj2ChbLgUj9S2x1GmQxQt
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
iQEcBAEBCAAGBQJT9eLgAAoJEKeha0olJ0NqgmIH/2bKjmCDcc6F8QE66Go2GxC7
NWEoYcpH1Vye3daAgsy4zVqzSxJFwiBnTdGin+Z5N65CcnTmzDAKicZGjJIu2IV/
l4XJnHljiaf8UfOiyC/OSHQl9ebkyzPcFVB34Zmjt0OZimD4gRs2/d8NXEmv0rKb
udVtlOCn8CynpPtMf9EhDkSA12slzzxpy26n9f27EjbnbblG7HzwVtoaG7Qy/5te
2CQiOJwJj31oPkO2Lj1bT31wWXk/jEoL3Pd4AWnoSb0WOoniU48Ydqg5OhHYnhnp
+xlOQ14S3TfSTaAhhen1t9qwD8RDruvjxuwoptlXZ/1+P0rAuUqK/5qpL38ns/4=
=QBuB
-----END PGP SIGNATURE-----
--EuLljuTjDFcgcj2ChbLgUj9S2x1GmQxQt--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |