[Top][All Lists]

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

[bug #20865] -delete interacts with -prune

From: Aaron Hawley
Subject: [bug #20865] -delete interacts with -prune
Date: Wed, 22 Aug 2007 16:27:03 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070313 Fedora/ Firefox/

Follow-up Comment #2, bug #20865 (project findutils):

I was bit by this, too.

Besides using -wholename, one can also just use -type f -exec rm -f {} ;

It's hard to break a habit -- like using -delete -- after you start.  It's
more convenient writing -delete than the -exec statment, and I also feel more
confident having `find' handle my deletes, because I assume it's "doing it

In 6 months, I predict I'll forget all this and fall into the -prune/-delete
trap.  So, even I would benefit from having an error message issued in such a
scenario.   One finds themself writing extensive find expressions and then
typing -delete at the end without considering the side-effects of -delete.

+1 to fix.

Thanks to Bruno for bringing my and others attention to this.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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