Steve Litt wrote on 2025-03-05 13:26:
>> echo "${PIPESTATUS[*]}"
>>
> This is immensely cool, if you use bash.
If you are using zsh, the array is called pipestatus (case matters!) and
the array indices start at one:
$ false | true
$ echo "${pipestatus[1]} ${pipestatus[2]}"
1 0