bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Heredoc can block trying to write to pipe under Darwin/XNU


From: Chet Ramey
Subject: Re: Heredoc can block trying to write to pipe under Darwin/XNU
Date: Tue, 7 Jul 2026 15:22:24 -0400
User-agent: Mozilla Thunderbird

On 6/28/26 2:10 AM, Ethan Pini wrote:

Bash Version: 5.3
Patch Level: 15
Release Status: release

Description:

         When bash is built on a macOS system where the high-water
         mark hasn't been reached, the max pipe size will be detected
         as 64 KiB. If the high-water mark is later reached and bash
         tries to write a medium-sized heredoc into a pipe, it will
         block due to the pipe only having a 512-byte capacity.

Thanks for the report. I honestly haven't run into this myself, and yours
is the first report I've seen about it. I will have a fix in the next
devel branch push.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]