On Fri, Jul 10, 2026 at 10:28:55 +0000, Julián Mateu wrote:
> Why macOS-specific:
> Darwin's PIPE_BUF is 512 bytes, so a pipe write larger than that blocks
> when no reader has started. Linux pipes buffer 64 KB, so the same code path
> only manifests for here-docs larger than 64 KB, masking the bug.

I believe this is the same issue discussed in
<https://lists.gnu.org/archive/html/bug-bash/2026-06/msg00126.html>

For the record, bash 5.3 on Debian GNU/Linux 13 amd64 does not reproduce
this bug with a $body larger than 64 kB.

hobbit:~$ bash-5.3
hobbit:~$ printf -v body %66000s ''
hobbit:~$ echo "${#body}"
66000
hobbit:~$ cat <<EOF
> $body
> EOF
(lots of empty space)
hobbit:~$ 

Reply via email to