From 1ef8d7c2cf32bac218af011fb727262f940e6d78 Mon Sep 17 00:00:00 2001 From: raf Date: Mon, 25 Apr 2022 13:39:12 +1000 Subject: [PATCH] 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. --- NEWS | 3 +++ doc/find.texi | 19 +++++++++++++++---- find/find.1 | 10 ++++++---- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/NEWS b/NEWS index 8aee5a3f..9d9472db 100644 --- a/NEWS +++ b/NEWS @@ -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] diff --git a/doc/find.texi b/doc/find.texi index f6c28399..c84d8a4a 100644 --- a/doc/find.texi +++ b/doc/find.texi @@ -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 diff --git a/find/find.1 b/find/find.1 index 073a3dd4..2fe1fcd8 100644 --- a/find/find.1 +++ b/find/find.1 @@ -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