doc: supplement list of actions that suppress default -print

* find/find.1 (EXPRESSION): Add missing -print0 and -fprint0 to
the list of actions that suppress the default -print action.
Sort items.
* doc/find.texi (find Expressions): Likewise.
* NEWS: Mention the fix.
This commit is contained in:
raf 2022-04-25 13:39:12 +10:00 committed by Bernhard Voelker
parent bad1de52aa
commit 1ef8d7c2cf
3 changed files with 24 additions and 8 deletions

3
NEWS
View File

@ -39,6 +39,9 @@ GNU findutils NEWS - User visible changes. -*- outline -*- (allout)
Translators contributed numerous fixes for issues in the find.1 man page.
The list of actions that suppress the default -print action has been
supplemented with the missing '-print0' and '-fprint0' actions.
* Noteworthy changes in release 4.10.0 (2024-06-01) [stable]

View File

@ -328,10 +328,21 @@ 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}.
@samp{-quit}.
Actions which inhibit the default @samp{-print} are
@samp{-delete},
@samp{-execdir},
@samp{-exec},
@samp{-fls},
@samp{-fprint0},
@samp{-fprintf},
@samp{-fprint},
@samp{-ls},
@samp{-okdir},
@samp{-ok},
@samp{-print0},
@samp{-printf}
and @samp{-print}.
Options take effect immediately, rather than being evaluated for each
file when their place in the expression is reached. Therefore, for

View File

@ -401,15 +401,17 @@ are
.BR \-delete ,
.BR \-exec ,
.BR \-execdir ,
.BR \-ok ,
.BR \-okdir ,
.BR \-fls ,
.BR \-fprint ,
.BR \-fprint0 ,
.BR \-fprintf ,
.BR \-ls ,
.B \-print
.BR \-ok ,
.BR \-okdir ,
.BR \-print0 ,
.B \-printf
and
.BR \-printf .
.BR \-print .
The