https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256755
Bug ID: 256755
Summary: /usr/bin/find -exec does not exit with non-zero exit
status if appropriate
Product: Base System
Version: 12.2-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
/usr/bin/find's manual page shows the following:
-exec utility [argument ...] {} +
Same as -exec, except that "{}" is replaced with as many path-
names as possible for each invocation of utility. This behaviour
is similar to that of xargs(1). The primary always returns true;
if at least one invocation of utility returns a non-zero exit
status, find will return a non-zero exit status.
However, find's behavior is different.
$ find /var/empty -exec false {} \; ; echo $?
0
This doesn't seem to be in the spec, so I'm wondering if the man page is wrong,
although personally I'd like this feature, or a flag to turn it on.
https://stackoverflow.com/questions/14871147/how-to-exit-from-find-exec-if-it-fails-on-one-of-the-files
--
You are receiving this mail because:
You are the assignee for the bug.