in reply to Detecting failed piped command run via ssh
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\[\@\]\}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Detecting failed piped command run via ssh
by devnull (Initiate) on Apr 08, 2009 at 10:50 UTC | |
by cdarke (Prior) on Apr 08, 2009 at 11:53 UTC |