Mail Archives: cygwin/1999/01/04/19:19:42
>
>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.
>
>Same behavior for any search pattern, not just .java, of course.
>
>find was working properly in 20.0 I'm pretty sure.
>
>
>Hugh Winkler
>Scout Systems, Inc.
>
this is normal behavior is globing is on, which is the shell default.
It has nothing to to with find. The shell is expanding *.java into a
list of files. If there are none, it leave *.java as is. You want to
type:
find . -name '*.java'
to supress globing. (And you can leave out the "/" as I did in the example).
Marc Auslander <marc AT watson DOT ibm DOT com> 914 945-4346 (Tieline 862 Fax x4425)
-
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 -