[Bug 256755] /usr/bin/find -exec does not exit with non-zero exit status if appropriate

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 21 Jun 2021 18:56:13 +0000

            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: bugs_at_FreeBSD.org
          Reporter: sega01_at_go-beyond.org

/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.


You are receiving this mail because:
You are the assignee for the bug.
Received on Mon Jun 21 2021 - 18:56:13 UTC

Original text of this message