possible problem with "find . -name blah -o -name blah2"
Eric Blake
eblake@redhat.com
Thu Aug 21 12:15:00 GMT 2014
On 08/20/2014 02:58 PM, mlist@bogusville.us wrote:
> 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 {} \;
This parses as:
find . -name \*.cs -o -name \*.h -o \( -name \*.cpp -exec ls {} \; \)
>
> pick your favorite for 'ls'
>
> this works as expected
>
> find . -name \*.cs -o -name \*.h -o -name \*.cpp
This parses as:
find . \( -name \*.cs -o -name \*.h -o -name \*.cpp \) -print
>
> it's probably not a horrible problem but i thought i'd report it.
Not a bug. Same POSIX-mandated behavior on all platforms.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 539 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140821/e5cc3034/attachment.sig>
More information about the Cygwin
mailing list