From: Pádraig Brady
Date: Mon, 23 Sep 2024 19:53:25 +0000 (+0100) Subject: doc: improve printf(1) reference in echo man page X-Git-Tag: v9.6~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7337076ecf1814d73b3b2c96fc42605925280952;p=thirdparty%2Fcoreutils.git doc: improve printf(1) reference in echo man page * src/echo.c (usage): Use printf(1) rather than 'printf', which is marked up more appropriately, and can be referenced by some man page readers. Fixes https://bugs.gnu.org/72914 --- diff --git a/src/echo.c b/src/echo.c index 11290f6f1d..4cc269c381 100644 --- a/src/echo.c +++ b/src/echo.c @@ -82,7 +82,7 @@ If -e is in effect, the following sequences are recognized:\n\ "), stdout); printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME); fputs (_("\n\ -Consider using the 'printf' command instead,\n\ +Consider using the printf(1) command instead,\n\ as it avoids problems when outputting option-like strings.\n\ "), stdout); emit_ancillary_info (PROGRAM_NAME);