[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:1.8.0.10) Gecko/20070313 Fedora/1.5.0.10-5.fc6 Firefox/1.5.0.10 |
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
right".
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:
<http://savannah.gnu.org/bugs/?20865>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/