On Dez 09 2024, Mike Jonkmans wrote:
> But the PIPESTATUS refers to the 'false' pipeline:
> $ if false; then :; fi; echo ${PIPESTATUS[*]}
> 1
$ if false; then :; fi | true; echo ${PIPESTATUS[*]}
0 0
Why is that not `1 0'? After all, the last executed commands as part of
the pipeline (by your reasoning) are `false' and `true'.
--
Andreas Schwab, [email protected]
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
