Rene Engelhard wrote: > I thought about find not caring about the -exec return status, but: > > rene@frodo:~$ find tmp -name "notexisting" | xargs rm
No -exec there.
It seems find *does* ignore the -exec exit status, which is news to me,
and seems to make -exec a misfeature.
joey@gnu:~/tmp/empty>touch file
joey@gnu:~/tmp/empty>find -exec false {} \; && echo $?
0
The man page is rather unclear about this. I think it's referring to
the value returned by -exec and usable by other find options, and not by the
value returned by find.
-exec command ;
Execute command; true if 0 status is returned.
I wonder if there is some way to propigate that value to the exit
code of find. If not, find -exec should be deprecated in any serious
code..
--
see shy jo
signature.asc
Description: Digital signature

