Re: Fwd: Behavior change in Dash pipes/read?
Herbert Xu <[email protected]> Wed, 4 Feb 2026 17:16:50 +0800
| Newsgroups | org.kernel.vger.dash |
|---|---|
| Message-ID | <[email protected]> |
Jyri-Matti Lähteenmäki <[email protected]> wrote: > > The results are as attachments. But > https://github.com/Mic92/strace-macos says it doesn't follow forks, so > I guess the interesting parts are missing? > Running /nix/store/wy9ass74g4yc1x354ydbdlxkfkxxjv2x-dash-0.5.13.1/bin/dash > -c 'echo hello > hello; { read -r x; echo "$x"; } < hello' seems to > work correctly. OK try running strace inside the script: echo hello | strace /path/to/dash -c 'read -r x; echo "$x"' Thanks, -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt