7b76bb
From a8ff1e964b2b8cd0b60362c76bd92795cee6b3c3 Mon Sep 17 00:00:00 2001
7b76bb
From: Kamil Dudka <kdudka@redhat.com>
7b76bb
Date: Sun, 17 Apr 2016 22:36:13 +0200
7b76bb
Subject: [PATCH] doc: clarify exit status handling of -exec command {} +
7b76bb
7b76bb
* find/find.1 (-exec): Explain how exit status is propagated if the
7b76bb
-exec command {} + syntax is used.
7b76bb
(-execdir): Likewise.
7b76bb
7b76bb
Reported at https://bugzilla.redhat.com/1325049
7b76bb
7b76bb
Upstream-commit: ae424b959c5e9bd23f9f686cb34653bc4cd1270e
7b76bb
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
7b76bb
---
7b76bb
 find/find.1 | 6 ++++++
7b76bb
 1 file changed, 6 insertions(+)
7b76bb
7b76bb
diff --git a/find/find.1 b/find/find.1
7b76bb
index a36a0bc..c4aaf17 100644
7b76bb
--- a/find/find.1
7b76bb
+++ b/find/find.1
7b76bb
@@ -1069,6 +1069,9 @@ command line is built in much the same way that
7b76bb
 .B xargs
7b76bb
 builds its command lines.  Only one instance of `{}' is allowed within
7b76bb
 the command.  The command is executed in the starting directory.  If
7b76bb
+any invocation returns a non-zero value as exit status, then
7b76bb
+.B find
7b76bb
+returns a non-zero exit status.  If
7b76bb
 .B find
7b76bb
 encounters an error, this can sometimes cause an
7b76bb
 immediate exit, so some pending commands may not be run
7b76bb
@@ -1104,6 +1107,9 @@ appropriately-named file in a directory in which you will run
7b76bb
 The same applies to having entries in
7b76bb
 .B $PATH
7b76bb
 which are empty or which are not absolute directory names.  If
7b76bb
+any invocation returns a non-zero value as exit status, then
7b76bb
+.B find
7b76bb
+returns a non-zero exit status.  If
7b76bb
 .B find
7b76bb
 encounters an error, this can sometimes cause an
7b76bb
 immediate exit, so some pending commands may not be run
7b76bb
-- 
7b76bb
2.5.5
7b76bb