This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: possible bug with find


On Tue, Jan 16, 2001 at 09:56:10PM +0000, Gerrit Peter Haase wrote:
> Heribert Dahms schrieb:
> > 
> > Hi Timo,
> > 
> > no bug, user error: On every *ix you normally need quotation to prevent the
> > shell from file globbing (wildcard expansion) before involing programs, like
> > 
> > find GtkRadiant -iname '*.cpp' -print
> 
> WHAT???
> 
> $ find include -iname *.h -print
> 
> include/ansidecl.h
> etc.

USER ERROR!!!

This doesn't work in tcsh for example.

If you are using *.h in a directory which itself doesn't contain
a file that matches, sh doesn't expand the wildcard and sends it
unresolved to the application. tcsh doesn't do this, though, but
instead raises an error message:

	find: No match.

Cd into the include directory itself and try it again. You will
be surprised...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]