Follow-up Comment #5, bug #20865 (project findutils):
Following some discussion on the mailing list, I'm inclined to think that
Bruno's point is rational. POSIX doesn't define -delete, so in theory we
could change it. However, other implementations (notably *BSD) have -delete
imply -depth. I am inclined to avoid a gratuitous incompatibility.
Options:
0. Make the documentation more explicit
1. Issue a warning message if -delete is specified without -depth
2. Add a -nodepth option (but this is a poor name I suppose)
3. Add a new action (say, -remove) which does not imply -depth
Looks like (0) is obvious, so I'll go ahead regardless with that.
Doing (1) seems reasonable, but there was widespread complaining about the
addition of the "options should appear before actions" warning message...
Option (2) is a more general solution but I haven't considered it much yet.
Option (3) is superficially attractive but it's arbitrary, solves just this
specific problem, and it will be hard for everybody to remember which action
implies -depth and which does not.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?20865>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/