bug-findutils
[Top][All Lists]
Advanced

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

find -type d -depth -name error


From: Wendy Palm
Subject: find -type d -depth -name error
Date: Wed, 06 Aug 2003 15:14:34 -0500
User-agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

i'm having problems using the following command with gnu find (4.1)
but not on other non-gnu versions of find.

the error is consistent on linux (redhat), solaris (sunblade, 5.8)
and my Crays.
sun's version of find and cray's version of find work correctly.

i searched the mail archives for any other mention of it, but didn't
see anything.  has anyone else come across this?

$ find . -depth -type d -name fi"*"
./findutils-4.1/find
findutils-4.1/find/find: ./findutils-4.1: No such file or directory
(i'm currently sitting in a directory with a subdirectory of the findutils 
source code)

and similarly
$ find . -type f -depth -name fi"*"
./findutils.bgz
./findutils-4.1/find/find.c
./findutils-4.1/find/find.o
./findutils-4.1/find/find
./findutils-4.1/lib/filemode.c
./findutils-4.1/lib/filemode.o
findutils-4.1/find/find: ./findutils-4.1: No such file or directory

taking out any of the options makes it work just fine
$ find . -depth -type d -print
./findutils-4.1/doc
./findutils-4.1/find
./findutils-4.1/lib
./findutils-4.1/locate
./findutils-4.1/testsuite/config
./findutils-4.1/testsuite/inputs
./findutils-4.1/testsuite/xargs.gnu
./findutils-4.1/testsuite/xargs.posix
./findutils-4.1/testsuite/xargs.sysv
./findutils-4.1/testsuite
./findutils-4.1/xargs
./findutils-4.1
.

$ find . -type d -name fi"*"
./findutils-4.1
./findutils-4.1/find

$ find . -depth -name fi"*"
./findutils.bgz
./findutils-4.1/find/find.c
./findutils-4.1/find/find.o
./findutils-4.1/find/find
./findutils-4.1/find
./findutils-4.1/lib/filemode.c
./findutils-4.1/lib/filemode.o
./findutils-4.1



thanks,
wendy

--
wendy palm
Cray Open Software Development, Cray Inc.
wendyp at cray.com, 651-605-9154





reply via email to

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