bug-findutils
[Top][All Lists]
Advanced

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

[bug #62227] Incorrect warning for -name /


From: Bernhard Voelker
Subject: [bug #62227] Incorrect warning for -name /
Date: Tue, 29 Mar 2022 02:14:59 -0400 (EDT)

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/




reply via email to

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