bugfindutils - Bugs: bug #14376, -follow -type l returns no results...


bug #14376: -follow -type l returns no results (when it should)

Submitted by:  None
Submitted on:  Fri 02 Sep 2005 06:14:26 PM UTC  
Category:  documentation Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Drew Van Zandt Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  4.2.24
Fixed Release:  4.2.25

Add a New Comment (Rich Markup)

You are not logged in

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


Fri 02 Sep 2005 08:53:24 PM UTC, comment #3: 

I have clarified the Texinfo and manpage documentation somewhat, and among other things the description of -type indicates to the reader that if they are interested in findding symbolic links when -L is in effect, they need to use -xtype.

James Youngman <jay>
Project AdministratorIn charge of this item.
Fri 02 Sep 2005 06:26:56 PM UTC, comment #2: 

No, that's the correct behaviour.  The -follow option causes find to dereference all symblic links.  That means that the -type test considers "linkfile" to be be a vanilla file, since the link is dereferenced.  If you want to use -follow (or -L) but still check the type of unbroken symbolic links, use the -xtype test.

Did you get an impression different to the above from reading the documentation?   If so, that's a bug in the documentation - please point out the bit of the documentation that needs fixing.

James Youngman <jay>
Project AdministratorIn charge of this item.
Fri 02 Sep 2005 06:16:33 PM UTC, comment #1: 

# find --version
GNU find version 4.1.20
# uname -a
Linux cam 2.4.27-2-386 #1 Mon May 16 16:47:51 JST 2005 i686 GNU/Linux

Fri 02 Sep 2005 06:14:26 PM UTC, original submission:  

mkdir followtest
touch test/realfile
ln -s test/realfile test/linkfile
find . -type l
find . -follow -type l



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

Attach Files:

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 add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.




Follow 9 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-03 jay Open/ClosedOpen => Closed
    ReleaseNone => 4.2.24
    Fixed ReleaseNone => 4.2.25
2005-09-02 jay Item GroupWrong result => None
2005-09-02 jay Categoryfind => documentation
    StatusInvalid => Fixed
2005-09-02 jay StatusNone => Invalid
    Assigned toNone => jay
2005-09-02 None Carbon-Copy- => Added drew --DOT-- vanzandt --AT-- gmail --DOT-- com

Back to the top

Powered by Savane 3.5