[bug #62227] Incorrect warning for -name /

anonymous <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Follow-up Comment #4, bug #62227 (project findutils):

[comment #3 comment #3:]
> So for my understanding:
> if 'find / -prune -name /' boils down to 'echo /', then what is
> the real use case behind?

In that case it does not do anything useful, sure. To get something useful we
would need to add more. A minimal example to demonstrate the use of -name /
might be


$ find / ! -name / -prune


This prints all entries in the root directory without recursing, in a way that
should work in any POSIX-compatible implementation of find.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62227>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.