[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug? in find
From: |
Marcel Martin |
Subject: |
Re: bug? in find |
Date: |
Wed, 16 Oct 2002 15:39:35 +0200 |
User-agent: |
KMail/1.4.3 |
On Wednesday 16 October 2002 04:35, Shigeru Mabuchi wrote:
> Hello,
[...]
> For example, if there are only files in the
> directory /home/foo/obj,
>
> find /home/foo/obj -name *.o
>
> returns the above error.
>
> Instead,
>
> find /home/foo -name *.o
>
> gives me the *.o list in /home/foo/obj.
>
> I'm not sure if this is a part of the 'find'
> specs, but even if it is so, I believe that it
> should be corrected. At least the error message
> should be something like 'no directory found'
> if 'find' can only search directory in the top
> level of the search path.
Please try to add double or single quotes to the search pattern like this:
find /home/foo/obj -name '*.o'
If you don't, your shell will replace *.o with a list of all .o-files in the
current directory (if there are any).
You might need to provide a more accurate description of how to reproduce your
problem if this doesn't solve it.
> Thanks.
>
> Shigeru MABUCHI
> WING
> http://wing.gr.jp/
Greetings,
Marcel
--
. .
/ V / Marcel Martin Bielefeld OpenPGP public key:
\ \ address@hidden Germany http://w148.de/~mmartin/public-key.asc
- bug? in find, Shigeru Mabuchi, 2002/10/15
- Re: bug? in find,
Marcel Martin <=