With appropriate backslashing:${PIPESTATUS[@]}
You only get one element because using an array without an index gives the first element (in Bash and ksh).\$\{PIPESTATUS\[\@\]\}
In reply to Re: Detecting failed piped command run via ssh
by cdarke
in thread Detecting failed piped command run via ssh
by devnull
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |