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

 
 

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

Submitter:  None
Submitted:  Mon 03 Oct 2005 11:10:04 AM UTC
   
 
Category:  find Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Wrong result
Status:  Invalid Privacy:  Public
Assigned to:  jay Originator Name:  mimis koltsakis
Originator Email:  -email is unavailable- Open/Closed:  Closed
Release:  4.2.19 Fixed Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

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>
Group administrator
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

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

History

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-10-03 jay StatusNone Invalid
    Assigned toNone jay
    Open/ClosedOpen Closed
2005-10-03 None Carbon-Copy- Added mkolts --AT-- civil --DOT-- auth --DOT-- gr

Back to the top

Powered by Savane 3.16-11ef.
Corresponding source code