Follow-up Comment #3, bug #65895 (group findutils):

Perhaps it's a bug to assume that users have both read the relevant
documentation and understood it. Perhaps treating a command line where
*-delete* is the first search criteria could/should be treated as an error (on
the principle of least astonishment). After all, if the user wanted to delete
everything, they are far more likely to use *rm -r* rather than *find .
-delete* so the backwards-incompatibility of such a change probably wouldn't
cause much grief. Especially if it was only an error when there are any
following search criteria on the comand line as those additional search
criteria must indicate an meaningless/erroneous use of _find_ (whereas
*-delete* without any following search criteria could still be acted on as
normal). But presumably, there could be examples where following search
criteria are meaningful (e.g. *find . -delete -exec echo '{}' ';'*). The logic
of what might be meaningful after *-delete* might be too difficult to get
right (or maybe not). It's something to think about.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?65895>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to