bugfindutils - Bugs: bug #65349, Wrong statement in -xtype...

 
 

bug #65349: Wrong statement in -xtype documentation

Submitter:  None
Submitted:  Fri 23 Feb 2024 05:20:48 PM UTC
   
 
Category:  documentation Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  None
Fixed Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 23 Feb 2024 05:20:48 PM UTC, original submission:  

findutils 4.9.0

The docs [1] say that for a symbolic link `-L -xtype X` is false unless the symbolic link is broken.

This statement seems false: in the following example link-to-inexistent is a broken symbolic link and is not printed.

$ rm -f inexistent; ln -s inexistent link-to-inexistent; find -L . -xtype f
$ ls -l
total 0
lrwxrwxrwx 1 xxx xxx 10 Feb 23 18:01 link-to-inexistent -> inexistent
$ find -version
find (GNU findutils) 4.9.0
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Eric B. Decker, James Youngman, and Kevin Dalley.
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION FTS(FTS_CWDFD) CBO(level=2)
$


[1] https://git.savannah.gnu.org/cgit/findutils.git/tree/doc/find.texi#n1217

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code