URL: <https://savannah.gnu.org/bugs/?65349>
Summary: Wrong statement in -xtype documentation Group: findutils 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: Open/Closed: Open Release: None Discussion Lock: Any Fixed Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Fri 23 Feb 2024 05:20:48 PM UTC By: Anonymous 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 _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?65349> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/