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

2015-10-05 Thread Stephane Chazelas
In the case of: find ... -exec cmd {} \; The exit status of cmd is used to determines whether the predicate evaluates to true or false. For instance: find . -exec test -d {} \; -print Would print the paths of the files that are directories or symlink to directories, the standard equivalent of

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