bugfindutils - Bugs: bug #14696, failure of find to search the...

 
 

bug #14696: failure of find to search the filetree properly

Submitted by:  None
Submitted on:  Mon 03 Oct 2005 11:10:04 AM UTC  
 
Category: findSeverity: 3 - Normal
Item Group: Wrong resultStatus: Invalid
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: mimis koltsakisOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.2.19
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 03 Oct 2005 11:05:41 PM UTC, comment #1:

It's not an erroneous result.

find is working perfectly, you have just misunderstood how your shell works. It's expanding the wildcard that you gave on the command line. You should protect the wildcard by quoting it - read the section in the findutils documentation about "-name". You may also find it helpful to read a book that explains the basics of using the Unix shell.

James Youngman <jay>
Project AdministratorIn charge of this item.
Mon 03 Oct 2005 11:10:04 AM UTC, original submission:

I was disconcerted to get the following (erroneous) result:

#### searching files ending in -comm from my home-dir:
mimis-9.2@goldberg:~> find . -name *.comm | grep learning
./learning/aster/try1/demo001a.comm
./learning/aster/try2/try2.comm
./learning/aster/try3/try3.comm
./learning/aster/forma03a/forma03a.comm
./learning/aster/xxx1.comm
./learning/aster/zzzz121/zzzz121a.comm
./learning/aster/zzzz121/zzzz121b.comm
./learning/aster/zzzz121/zzzz121c.comm
./learning/aster/demo001a/demo001a.comm

#### descending into learning/aster causes "find" to fail descending into the tree (dirs try1, try2, try3 etc - only the file xxx1.comm is located)
mimis-9.2@goldberg:~> cd learning/aster/
mimis-9.2@goldberg:~/learning/aster> find . -name *.comm
./xxx1.comm

#### my find version:
mimis-9.2@goldberg:~/learning/aster> find --version
GNU find version 4.2.19

#### my linux version (SuSE 9.3):
mimis-9.2@goldberg:~/learning/aster> uname -a
Linux goldberg 2.6.11.4-20a-default #1 Wed Mar 23 21:52:37 UTC 2005 i686 i686 i386 GNU/Linux

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 03 Oct 2005 11:05:41 PM UTCjayStatusNone=>Invalid
  Assigned toNone=>jay
  Open/ClosedOpen=>Closed
Mon 03 Oct 2005 11:10:05 AM UTCNoneCarbon-Copy-=>Added mkolts --AT-- civil --DOT-- auth --DOT-- gr

Back to the top


Powered by Savane 3.1-cleanup1