Re: "find" ends with exit code "0" although exec command returned an error

2015-10-05 Thread Thomas D.
Hi, Bernhard Voelker wrote: > Thanks for the report, however, although the result may be surprising a bit, > I think it is mandated by POSIX: > > http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.html > > If the primary expression is punctuated by a , the utility > utility_nam

"find" ends with exit code "0" although exec command returned an error

2015-10-04 Thread Thomas D.
Hi, for me it looks like "find" returns an invalid exit code when "-exec" returns an error: $ mkdir /tmp/find-test $ touch /tmp/find-test/scripts{1..10}.sh $ touch /tmp/find-test/text{1..10}.txt $ find /tmp/find-test -name '*.sh' -exec chmod 755 \; \ && echo "find succeed" || echo "find failed"