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/



Reply via email to