This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
re: `find' command broken.
- To: john dot cooper at digitivity dot com
- Subject: re: `find' command broken.
- From: James Dumser <dumser at ti dot com>
- Date: Fri, 11 Jul 1997 08:12:47 -0500
- Cc: GNU-Win32 at cygnus dot com
- Conversation-Id: <19970711092719531.AAA303@TENDLE>
- Reply-To: James Dumser <dumser at ti dot com>
On Fri, 11 Jul 1997 10:27, John Cooper <John.Cooper@digitivity.com>
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>
And the fact that cmd does not glob is the "problem": bash globs; but
since cmd doesn't, cygwin32 globs for it (because Unix programs expect
globbing to be done).
>Oddly, this does work under bash. Can anyone explain this?
This will work under bash IFF there are no .c files in the current
directory (bash tries to glob; but since there are no matches, it leaves
it alone) -- in which case, running under cmd should have the same
results). Did you run your tests (cmd vs bash) from the same directory?
The correct syntax should be
find . -name '*.c' -print
--
James Dumser 972.462.5335 dumser@ti.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".