[bug #62227] Incorrect warning for -name /

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

I'm just a bit reluctant because '-name /' will really only find
a match if "/" is given as starting point (which we don't know at
the time of parsing the expression tree).
In all other cases it is better for a user to keep the simple rule
in mind that the -name pattern must never contain a slash.
Hence to issue a warning is a good thing IMO.

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


    _______________________________________________________

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.