From 4c50e6016eb6032f079b31e608e8fad838585735 Mon Sep 17 00:00:00 2001 From: jmc Date: Wed, 1 Aug 2018 07:09:15 +0000 Subject: [PATCH] document when -exec evaluates to true; from kris katterjohn ok tb while here, knock out a useless Tn; --- usr.bin/find/find.1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1 index 4e76703750d..e773b56620f 100644 --- a/usr.bin/find/find.1 +++ b/usr.bin/find/find.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: find.1,v 1.94 2018/08/01 06:37:33 tb Exp $ +.\" $OpenBSD: find.1,v 1.95 2018/08/01 07:09:15 jmc Exp $ .\" Copyright (c) 1990, 1993 .\" The Regents of the University of California. All rights reserved. .\" @@ -224,6 +224,9 @@ or a plus sign If terminated by a semicolon, the .Ar utility is executed once per path. +This form of the primary evaluates to true if +.Ar utility +exits with a zero exit status. If the string .Qq {} appears anywhere in the utility name or the @@ -235,6 +238,7 @@ primary is evaluated are aggregated into sets, and .Ar utility will be invoked once per set, similar to .Xr xargs 1 . +This form of the primary always evaluates to true. If any invocation exits with a non-zero exit status, then .Nm will eventually do so as well, but this does not cause @@ -520,9 +524,7 @@ This evaluates to true if the parenthesized expression evaluates to true. .Pp .It Cm \&! Ar expression -This is the unary -.Tn NOT -operator. +This is the unary NOT operator. It evaluates to true if the expression is false. .Pp .It Ar expression Cm -a Ar expression -- 2.20.1