Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh 5.9 (macOS 15.8.2 Apple build): heredoc/here-string on a non-first pipeline member concatenates upstream pipe output into stdin instead of overriding the pipe
- X-seq: zsh-workers 55237
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: 孤客 <yfei087@xxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: zsh 5.9 (macOS 15.8.2 Apple build): heredoc/here-string on a non-first pipeline member concatenates upstream pipe output into stdin instead of overriding the pipe
- Date: Sun, 01 Nov 2026 07:24:58 +0000
- Archived-at: <https://zsh.org/workers/55237>
- Dkim2-signature: i=1; m=1; t=1793517919; d=daniel.shahaf.name; mf=PGQuc0BkYW5pZWwuc2hhaGFmLm5hbWU+; rt=PHpzaC13b3JrZXJzQHpzaC5vcmc+; s=fm1:rsa-sha256:g+wEVG+bHF1qU5SmG++cNtEU3Q3dGIRLgdNBCMjvzcIKOzL WLRkXu6esZrYSBLW/oWbqSyhYhbGTEjCV5aAHzT8pR7T0qtEjfr3Jo8Q+0Vtw2An NRvAV7gH35mXSXqYdoaOuZt9RcfBwD1jK0JDho8/VyaCqjoFEttQErnJ6K/wbhU+ CuTKaKUIgqM8fqiWRPR8GanZOvn4BiocwauXFw1n2H4CS5blLuMOzbjuBZNuAWI4 03f5mjbP2wdhd5WqWIoAvAHFRLAU9cnJ+KCzLSClqE1acNByuKGv6C7tKx+317Vl sPjwNlyZjvViVxlTnop1Jn1pydiocok3wzTPBSg==;
- Feedback-id: i425e4195:Fastmail
- In-reply-to: <auXv5ISQz4waIm7R@chazelas.org>
- List-id: <zsh-workers.zsh.org>
- Message-instance: m=1; h=sha256:BkvyGqyU4MoTenn/P3yW7oiptUjcZKUhOPflOPLS51E=:d87V1GT8/5Jb1UsWPlETvJc+SrgPJikRbneJXo9+i2M=;
- References: <A143156B-84E8-4993-BFAE-C7BDAF0399EC@gmail.com> <auXv5ISQz4waIm7R@chazelas.org>
Stephane Chazelas wrote on Sat, 31 Oct 2026 13:50 +00:00:
> 2026-10-31 19:51:11 +0800, 孤客:
> [...]
>> > Minimal repro:
>> >
>> > % printf 'PIPE-CONTENT' | cat <<'EOF'
>> > HEREDOC-CONTENT
>> > EOF
>> > PIPE-CONTENTHEREDOC-CONTENT # zsh 5.9 actual (concatenated)
>> >
>> > # expected / bash & /bin/sh actual:
>> > HEREDOC-CONTENT
> [...]
>
> That's as documented.
Also, zsh doesn't promise to correctly interpret arbitrary bash scripts:
see https://zsh.org/workers/53892 and the references there.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author