Re: dash 0.5.13.1: heredoc parsing failure

Herbert Xu <[email protected]> Tue, 3 Feb 2026 10:37:39 +0800
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Hadrien LACOUR <[email protected]> wrote:
> [-- text/plain, encoding quoted-printable, charset: UTF-8, 32 lines --]
> 
> Since strace doesn't work on MacOS, I used
> https://github.com/Mic92/strace-macos to get the attached log. No
> `tee` calls, but I see two `read`, the first one returning 549 (which
> is the size of the test script) and the second 0.

Awesome! I can reproduce this now.  So it's not tee(2) fallback
that's the problem, rather the fallback for memfd_create(2).

Also it only happens when the here-document is larger than PIPE_SIZE,
which is when a fork is required.

Thanks,
-- 
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt