Update of bug #20865 (project findutils):
Status: None => Confirmed
Release: 4.2.28 => 4.2.3
_______________________________________________________
Follow-up Comment #1:
This has been present since -delete was introduced in 4.2.3. I agree that
the silent enabling of -depth defeats the purpose of -prune, but on the other
hand, the use of -delete without -depth is unable to delete directory trees.
For backwards compatibility, it is easier to keep the implicit -depth
triggered by -delete. Both -depth and -prune are specified by POSIX, so we
can't do anything about those in isolation. However, since -delete is not
specified by POSIX, we are okay to make the -delete/-prune combination issue
an error and refuse to do anything if -depth is not explicitly requested (I
don't think a warning is good enough, because the changed traversal order
would still be attempted after printing the warning). The error should
suggest the use of -wholename (aka -path) as a way to achieve what -prune was
doing.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20865>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/