possible problem with "find . -name blah -o -name blah2"

Georg Nikodym georgn@bitkeeper.com
Wed Aug 20 21:08:00 GMT 2014


On Aug 20, 2014, at 16:58 , 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 {} \;

Not a Cygwin problem.  Try:

	find . \( -name \*.cs -o -name \*.h -o -name \*.cpp \) -exec ls {} \;

-g

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 155 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://cygwin.com/pipermail/cygwin/attachments/20140820/03f78cf0/attachment.sig>


More information about the Cygwin mailing list