Follow-up Comment #1, bug #18375 (project findutils):
This is no bug in find.
You need to use single quotes to prevent the shell to expand your wildcards
befo
re find can see them. This will work:
sudo find / -name 'wol*'
This example illustrates the problem:
[EMAIL PROTECTED]:/tmp/x$ mkdir wol1 wol2 blah
[EMAIL PROTECTED]:/tmp/x$ touch wol1/x wol2/x blah/wolke
[EMAIL PROTECTED]:/tmp/x$ find ./ -name wol*
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
[EMAIL PROTECTED]:/tmp/x$ echo find ./ -name wol*
find ./ -name wol1 wol2
As you can see in the last two lines the commanded that actually is executed
is "find ./ -name wol1 wol2" because the shell expands wol* to wol1 wol2. And
this command is sytactically invalid.
Both find ./ -name 'wol*' and find ./ -name wol\* work.
cu andreas
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?18375>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils