From: Paul Eggert Date: Tue, 19 Nov 2024 22:01:32 +0000 (-0800) Subject: doc: mention "printf %d ''" change X-Git-Tag: v9.6~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c69fd16bc00f7c7e809ae8f35d255841c7ab8dd;p=thirdparty%2Fcoreutils.git doc: mention "printf %d ''" change --- diff --git a/NEWS b/NEWS index ef57baa3a9..1852f311f9 100644 --- a/NEWS +++ b/NEWS @@ -20,6 +20,11 @@ GNU coreutils NEWS -*- outline -*- Previously it would have ignored the affinity mask on such systems. [bug introduced with nproc in coreutils-8.1] + printf now diagnoses attempts to treat empty strings as numbers, + as per POSIX. For example, "printf '%d' ''" now issues a diagnostic + and fails instead of silently succeeding. + [This bug was present in "the beginning".] + 'shuf' generates more-random output when the output is small. [bug introduced in coreutils-8.6]