Re: dash 0.5.13.1: heredoc parsing failure

Herbert Xu <[email protected]> Wed, 28 Jan 2026 12:16:53 +0800
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Hadrien LACOUR <[email protected]> wrote:
> 
> Hello, I'm on a ARM64 MacOS machine and updated from 0.5.12 to 0.5.13
> via Macports only to get a very strange failure (nothing printed)
> attached as a script. I then tried on
> 5139d6a27763fc0be386e15634db21e45598b299 ("shell: Fix unsigned char
> promotion and truncation") since my problem seemed similar but not
> cigar; tried using a modern clang (21) instead of the system one too.
> 
> Hope GMail doesn't botch anything (nothing else at work).

Dash 0.5.13 uses tee(2) on Linux for pipes, while other systems
will fall back to reading a single byte.

I suspect this is a bug in the fallback path which I no longer test.

Please run dash 0.5.13 under strace and send me the result.

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