[Top][All Lists]

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

[bug #20865] -delete interacts with -prune

From: Eric Blake
Subject: [bug #20865] -delete interacts with -prune
Date: Wed, 22 Aug 2007 12:33:00 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20070725 Firefox/ Mnenhy/

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


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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