www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/06/21/08:05:36

X-Spam-Check-By: sourceware.org
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
Subject: Re: find dir <expr1> -o <expr2> does not work
Date: Wed, 21 Jun 2006 12:05:21 +0000
Message-Id: <062120061205.20083.449936010006E4AA00004E7322069997350A050E040D0C079D0A@comcast.net>
X-Mailer: AT&T Message Center Version 1 (Apr 11 2006)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

> Hi,
> 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.

-- 
Eric Blake
volunteer cygwin findutils maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019