summaryrefslogtreecommitdiff
path: root/doc/find.texi
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2019-05-04 00:42:39 +0100
committerJames Youngman <jay@gnu.org>2019-05-04 00:46:42 +0100
commite5990526859af7b62eb3840a9a6806c81c23b693 (patch)
treece78cadf49d4e48e1b1defa8eefcba7ab7c6bc25 /doc/find.texi
parent161b83875460da63f2d687c3277521a51d1a16ec (diff)
downloadfindutils-e5990526859af7b62eb3840a9a6806c81c23b693.tar.gz
doc: fix bug #56142 by specifying which actions inhibit the default -print
* find/find.1: specify which actions inhibit the default -print action. * doc/find.texi (find Expressions): Likewise.
Diffstat (limited to 'doc/find.texi')
-rw-r--r--doc/find.texi13
1 files changed, 9 insertions, 4 deletions
diff --git a/doc/find.texi b/doc/find.texi
index 262af12a..a410b295 100644
--- a/doc/find.texi
+++ b/doc/find.texi
@@ -306,10 +306,15 @@ evaluated.
You can omit the operator between two primaries; it defaults to
@samp{-and}. @xref{Combining Primaries With Operators}, for ways to
-connect primaries into more complex expressions. If the expression
-contains no actions other than @samp{-prune}, @samp{-print} is
-performed on all files for which the entire expression is true
-(@pxref{Print File Name}).
+connect primaries into more complex expressions.
+
+The @samp{-print} action is performed on all files for which the
+entire expression is true (@pxref{Print File Name}), unless the
+expression contains an action other than @samp{-prune} or
+@samp{-quit}. Actions which inhibit the default @samp{-print} are
+@samp{-delete}, @samp{-exec}, @samp{-execdir}, @samp{-ok},
+@samp{-okdir}, @samp{-fls}, @samp{-fprint}, @samp{-fprintf},
+@samp{-ls}, @samp{-print} and @samp{-printf}.
Options take effect immediately, rather than being evaluated for each
file when their place in the expression is reached. Therefore, for