delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/01/05/05:27:30

From: corinna DOT vinschen AT cityweb DOT de (Corinna Vinschen)
Subject: Re: B20.1 bug: find is acting funny
5 Jan 1999 05:27:30 -0800 :
Message-ID: <3690EC6E.32A8EAE.cygnus.gnu-win32@cityweb.de>
References: <000001be3792$9adb78a0$0c0aa8c0 AT harry DOT scoutsys DOT com>
Mime-Version: 1.0
To: hughw AT scoutsys DOT com, gnu-win32 AT cygnus DOT com

Hugh Winkler wrote:
> 
> In b20.1 (bash 2.02.1(2), find 4.1) if I do
>     find ./ -name *.java
> 
> and there are some .java files in the current directory, find emits
> 
>         find: paths must precede expression
>         Usage: find [path...] [expression]
> 
> but if there are no .java files in the current directory, find behaves as
> expected.

If you use wildcards, which should be expanded by find, _not_ by the shell,
but by find, you should quote them:

	find . -name '*.java' -print

> find was working properly in 20.0 I'm pretty sure.

I bet, only with quoted wildcards, too.

Regards,
Corinna

-
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