Follow-up Comment #5, bug #54730 (project findutils):
Hmm, given that -exec ... ; does not affect the exit status, it is unfortunate
that there is no other way for the user to (directly) affect it. Viz:
jupiter:~$ find / -exec false \; -o -quit
jupiter:~$ echo $?
0
The most obvious workaround (making use of the fact that the -exec + form does
affect the exit status) is pretty horrible:
jupiter:~$ find / -exec false \; -o \( -exec false {} \+ -quit \) ; echo $?
1
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?54730>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/