This is the mail archive of the
mailing list for the Cygwin project.
Re: find dir <expr1> -o <expr2> does not work
- From: ericblake at comcast dot net (Eric Blake)
- To: root <CRISTIROOPET02+root at bucharest-mof dot ro dot ibm dot com>, cygwin at cygwin dot com
- Date: Wed, 21 Jun 2006 12:05:21 +0000
- Subject: Re: find dir <expr1> -o <expr2> does not work
> I posted my request for help, but the client i used truncated the message.
> I post it again for your attention.
I've now seen substantially the same message content three times.
> By the way
> find common -type f -o -type l -print does not works either.
It does what it was told, but is the same as
find common -type f -o \( -type l -print \)
and only prints symlinks.
> find common -type f -o -type l
Are you sure you don't have some alias in place, and that
you are picking up the right version of find? The above
expression is the same as
find common \( -type f -o -type l \) -print
and works for me to print out all regular files and symlinks.
> find common -type f -o
That is a syntax error. -o requires two arguments. The fact
that you got directories listed instead of a syntax error makes
me suspect that you aren't invoking find properly.
What do 'type find' and 'echo find common -type f -o' print?
Also, following these directions:
> Problem reports: http://cygwin.com/problems.html
and attaching the output of 'cygcheck -svr' would be helpful.
volunteer cygwin findutils maintainer
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html