[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] head: fix two bugs when eliding bytes from a pipe
|
From: |
Collin Funk |
|
Subject: |
Re: [PATCH] head: fix two bugs when eliding bytes from a pipe |
|
Date: |
Mon, 16 Nov 2026 15:51:45 -0800 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Pádraig Brady <P@draigBrady.com> writes:
> 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.
Looks good to me. Pushed with that change.
Thanks,
Collin