Bug 256755

Summary: /usr/bin/find -exec does not exit with non-zero exit status if appropriate
Product: Base System Reporter: Teran McKinney <sega01>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me CC: chris
Priority: ---    
Version: 12.2-STABLE   
Hardware: Any   
OS: Any   

Description Teran McKinney 2021-06-21 18:56:13 UTC
/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 $?

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.