On 08/20/2014 02:58 PM, ml...@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
signature.asc
Description: OpenPGP digital signature