delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/01/18/19:13:59

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <004401c2bf4f$3e19e040$12760251@benson.hones.org.uk>
From: "Cliff Hones" <cliff AT aonix DOT co DOT uk>
To: "Paul T. Karch" <pkarch AT stargate DOT net>
Cc: <cygwin AT cygwin DOT com>
References: <003501c2bf48$31197e20$a48b28d0 AT military>
Subject: Re: find Exhibits Strange Behavior ?
Date: Sun, 19 Jan 2003 00:10:57 -0000
Organization: Aonix Europe Ltd.
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Paul T. Karch" pkarch AT stargate DOT net writes:
> After I startup with cygwin.bat I am put
> into the /home/user directory.
> If I try to do any of the commands:
> find . -iname *.c
> find  -iname *.c
> find / -iname *.c
> 
> I get the following:
> 
> find: paths must precede expression
> Usage: find [path...] [expression]
>...
> This is not really a problem, I guess, but it is curious.
> Also I may not be interpreting the meaning of the find command
> properly.  Any comments ?

I think it is the operation of the shell which you are not
understanding properly.  If you use *.c on the command line
without quoting it, the shell expands it before passing it
to find.  Try again using e.g.

    find . -iname '*.c'

-- Cliff


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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