Resolves: #1325049 - clarify exit status handling
... of -exec cmd {} + in find(1) man page
This commit is contained in:
parent
300d2a2bec
commit
cbc6933054
44
findutils-4.6.0-man-exec.patch
Normal file
44
findutils-4.6.0-man-exec.patch
Normal file
@ -0,0 +1,44 @@
|
||||
From a8ff1e964b2b8cd0b60362c76bd92795cee6b3c3 Mon Sep 17 00:00:00 2001
|
||||
From: Kamil Dudka <kdudka@redhat.com>
|
||||
Date: Sun, 17 Apr 2016 22:36:13 +0200
|
||||
Subject: [PATCH] doc: clarify exit status handling of -exec command {} +
|
||||
|
||||
* find/find.1 (-exec): Explain how exit status is propagated if the
|
||||
-exec command {} + syntax is used.
|
||||
(-execdir): Likewise.
|
||||
|
||||
Reported at https://bugzilla.redhat.com/1325049
|
||||
|
||||
Upstream-commit: ae424b959c5e9bd23f9f686cb34653bc4cd1270e
|
||||
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
|
||||
---
|
||||
find/find.1 | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/find/find.1 b/find/find.1
|
||||
index a36a0bc..c4aaf17 100644
|
||||
--- a/find/find.1
|
||||
+++ b/find/find.1
|
||||
@@ -1069,6 +1069,9 @@ command line is built in much the same way that
|
||||
.B xargs
|
||||
builds its command lines. Only one instance of `{}' is allowed within
|
||||
the command. The command is executed in the starting directory. If
|
||||
+any invocation returns a non-zero value as exit status, then
|
||||
+.B find
|
||||
+returns a non-zero exit status. If
|
||||
.B find
|
||||
encounters an error, this can sometimes cause an
|
||||
immediate exit, so some pending commands may not be run
|
||||
@@ -1104,6 +1107,9 @@ appropriately-named file in a directory in which you will run
|
||||
The same applies to having entries in
|
||||
.B $PATH
|
||||
which are empty or which are not absolute directory names. If
|
||||
+any invocation returns a non-zero value as exit status, then
|
||||
+.B find
|
||||
+returns a non-zero exit status. If
|
||||
.B find
|
||||
encounters an error, this can sometimes cause an
|
||||
immediate exit, so some pending commands may not be run
|
||||
--
|
||||
2.5.5
|
||||
|
@ -1,7 +1,7 @@
|
||||
Summary: The GNU versions of find utilities (find and xargs)
|
||||
Name: findutils
|
||||
Version: 4.6.0
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Epoch: 1
|
||||
License: GPLv3+
|
||||
Group: Applications/File
|
||||
@ -21,6 +21,9 @@ Patch3: findutils-4.4.2-xautofs.patch
|
||||
# eliminate compile-time warnings
|
||||
Patch4: findutils-4.5.13-warnings.patch
|
||||
|
||||
# clarify exit status handling of -exec cmd {} + in find(1) man page (#1325049)
|
||||
Patch5: findutils-4.6.0-man-exec.patch
|
||||
|
||||
# implement the -noleaf option of find (#1252549)
|
||||
Patch8: findutils-4.5.15-leaf-opt.patch
|
||||
|
||||
@ -54,6 +57,7 @@ rm -rf locate
|
||||
%patch1 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch8 -p1
|
||||
|
||||
# needed because of findutils-4.4.0-no-locate.patch
|
||||
@ -104,6 +108,9 @@ fi
|
||||
%{_infodir}/find-maint.info.gz
|
||||
|
||||
%changelog
|
||||
* Mon Apr 18 2016 Kamil Dudka <kdudka@redhat.com> - 1:4.6.0-4
|
||||
- clarify exit status handling of -exec cmd {} + in find(1) man page (#1325049)
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:4.6.0-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user