A while back I implemented -delete for GNU find. Some comments have been made that its behaviour when it fails are somewhat unexpected. I thought at the time that I made the right tradeoffs, but that might not be the case. Although there is a Savannah bug open for this (https://savannah.gnu.org/bugs/?20802) please have a think about what you would like to happen before you read about what happens juat at the moment.
1. If unlink or rmdir fails, should the -delete action return true or false? 2. If -delete returns false because it fails, should find also return nonzero? 3. Should -delete issue a message on stderr if it fails, or (on the other hand) should it be possible for the caller to choose how the message is phrased by doing something like this? \ ( -delete -o -fprintf /dev/stderr "No luck with %u's file %p\n" \) James.
