bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #51926] -xtype l fails on symbolic links that have a loop


From: Tavian Barnes
Subject: [bug #51926] -xtype l fails on symbolic links that have a loop
Date: Tue, 5 Sep 2017 15:54:22 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36

Follow-up Comment #4, bug #51926 (project findutils):

> It turns out that find treats "-xtype (anything)" as false on a
broken link, which doesn't seem to be specified in the manual page. So it
would be plausible to treat it as false on a circular link as well.

Not really:

$ ln -s nowhere broken
$ find -xtype l
./broken

That behaviour is documented here:
https://www.gnu.org/software/findutils/manual/html_node/find_html/Type.html

As far as what to do when encountering a symbolic link loop, I think it makes
sense to consider them the same as other forms of broken symbolic links.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51926>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]