Pipe status
In bash, we use
echo "${PIPESTATUS[@]}"
for an array of exit statuses of processes in a pipe. For example
false | true | false | true | true
echo "${PIPESTATUS[@]}"
# outputs: 1 0 1 0 0
(In ZshSh we use pipestatus (lowercase) instead.)