delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/07/11/19:20:53

From: dbe AT wgn DOT net ("$Bill Luebkert")
Subject: Re: `find' command broken.
11 Jul 1997 19:20:53 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <33C66B2C.6D8C.cygnus.gnu-win32@wgn.net>
References: <19970711092719531 DOT AAA303 AT TENDLE>
Reply-To: dbe AT wgn DOT net
Mime-Version: 1.0
X-Mailer: Mozilla 3.01Gold (Win95; I)
Original-To: john DOT cooper AT digitivity DOT com
Original-CC: GNU-Win32 AT cygnus DOT com, Amol Deshpande <amold AT microsoft DOT com>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

John Cooper wrote:
> 
> Since cmd.exe doesn't do any globbing, the following should presumably work:
> 
>     H:\ef>find . -name *.c -print
>     find: paths must precede expression
>     Usage: find [path...] [expression]
>     H:\ef>
> 
> I'm actually using the early zsh release, and get the same result when I run
> `find . -name *.c -print' .
> 
> Oddly, this does work under bash.  Can anyone explain this?

It shouldn't work under either, you need to escape the wildcards, try:
	find . -name '*.c' -print

I tried it under tcsh and it failed also.  It said:
	FIND: Parameter format not correct

Presumably I got a different find in my path, because when I fully
qualified 
the path it worked ok, ie:

	C:/gnuwin32/b18/H-i386-cygwin32/bin/find . -name '*.c' -print

I'll have to go do a search and see which find's are on my path cause
which isn't working on tcsh.

-- 
  ,-/-  __      _  _         $Bill Luebkert
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      http://www.wgn.net/~dbe/
-/-' /___/_<_</_</_    Email: dbe AT wgn DOT net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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