On 16/11/2026 05:01, Collin Funk wrote:
Here are some simple reproducers for the two semi-related bugs:

     $ head -c $((1024 * 1024 + 8192 + 1)) /dev/zero \
         | head -c -$((1024 * 1024 + 8192)) | wc -c
     8193
     $ head -c $((1024 * 1024 + 8192 + 1)) /dev/zero \
         | head -c -$((1024 * 1024 + 8192 + 2)) | wc -c
     head: error writing 'standard output'
     0
I'd tweak the NEWS as per the attached.

Otherwise LGTM.

cheers,
Padraig
diff --git a/NEWS b/NEWS
index 56977e5d4..e4851a853 100644
--- a/NEWS
+++ b/NEWS
@@ -130,12 +130,12 @@ GNU coreutils NEWS                                    -*- outline -*-
   after a tab character are accounted for correctly.
   [bugs introduced in coreutils-9.8]
 
-  'head --bytes=-N' no longer outputs BUFSIZ extra bytes when N is a multiple of
-  BUFSIZ and the input is a pipe with more than 1MiB of data.
+  'head --bytes=-N' no longer elides BUFSIZ fewer bytes from a pipe when
+  N exceeds 1 MiB and is a multiple of BUFSIZ.
   [bugs introduced in coreutils-9.6]
 
-  'head --bytes=-N' no longer mistakenly fails with a write error N is larger
-  than 1 MiB, and the input is a pipe slightly smaller than N.
+  'head --bytes=-N' no longer fails with a write error when N exceeds 1 MiB
+  and the input is a pipe slightly smaller than N.
   [bugs introduced in coreutils-5.0.1]
 
   'install --strip' sets the umask to the initial umask specified by the user

Reply via email to