Re: Behavior change in Dash pipes/read?

Herbert Xu <[email protected]> Wed, 28 Jan 2026 12:30:44 +0800
Newsgroups org.kernel.vger.dash
Message-ID <[email protected]>
Jyri-Matti Lähteenmäki <[email protected]> wrote:
> Hi,
> 
> after upgrading from Dash 0.5.12 to 0.5.13.1 some of my scripts
> stopped working. Here's a test case:
> 
> $ /nix/store/wy9ass74g4yc1x354ydbdlxkfkxxjv2x-dash-0.5.13.1/bin/dash
> -c 'echo hello | { read -r x; echo "$x"; }'
> $ /nix/store/4kjsgkcxqfadycyspzfrf9gg5n5bpc27-dash-0.5.12/bin/dash -c
> 'echo hello | { read -r x; echo "$x"; }' hello
> 
> (with 0.5.12 "hello" is printed, but with 0.5.13.1 it's not)
> 
> Can someone confirm?

Again this sounds like a bug in the tee(2) fallback path.

I just tested the fallback path on Linux and it seems to work.

So I'll need your help in identifying the root cause.  Please
run dash 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