$PIPESTATUS
–
Exit Status Values of Pipeline
$PIPESTATUS
is an array and contains the exit status values of the most-recently-executed foreground pipeline.
Links
BashSupport Pro is a Bash IDE with support for $PIPESTATUS – try it now!