Follow-up Comment #4, bug #44221 (project findutils): Considering...
find -type f -ls -a -mindepth 4 -delete That's an odd example ... I'm really struggling to understand what possible interpretation -mindepth could have here other than the one it has .. maybe someone might want to list all files but delete only some of them? Without the warning they may be unable to figure out why they did not list things below depth 4? Is the problem not that an output action, "-ls" appears before -mindepth? Here is a restatement of the command with no opportunity for ambiguity, which nevertheless generates a warning: find -type f -mindepth 4 -ls -a -delete Even this wildly incorrect invocation can only be understood in one way (and it is somehow allowed, when "find -type f -a" is not): find -type f -a -mindepth 2 While it is fun to educate users that they are misunderstanding the more subtle points of finding files, a 37 word warning lecture when there is no possible ambiguity or bug seems petulant rather than helpful. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?44221> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/