possible bug with find
Corinna Vinschen
cygwin@cygwin.com
Tue Jan 16 13:10:00 GMT 2001
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
More information about the Cygwin
mailing list