I am on zsh 5.8 (arm-apple-darwin20.2.0). Unlike the way PIPESTATUS
in bash is available to read during the next shell prompt, pipestatus
of pipe in zsh seems to disappear in the following prompt.
❯ true | false | true ; echo $pipestatus
0 1 0
❯ true | false | true
❯ echo $pipestatus
0
This behavior is unlike that suggested in the answer here, and the zsh document does not mention anything regarding this.