[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #18375] Error messages with some patterns

From: Andreas Metzler
Subject: [bug #18375] Error messages with some patterns
Date: Sun, 26 Nov 2006 08:33:30 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20061113 Debian/1.7.8-1sarge8

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
re find can see them. This will work:
sudo find / -name 'wol*'

This example illustrates the problem:
address@hidden:/tmp/x$ mkdir wol1 wol2 blah
address@hidden:/tmp/x$ touch wol1/x wol2/x blah/wolke
address@hidden:/tmp/x$ find ./ -name wol*
find: paths must precede expression
Usage: find [-H] [-L] [-P] [path...] [expression]
address@hidden:/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:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]