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: anonymous
Subject: [bug #62227] Incorrect warning for -name /
Date: Tue, 29 Mar 2022 09:04:41 -0400 (EDT)

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/




reply via email to

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