[CentOS] Getting the return value of the last command run
Stephen Harris
lists at spuddy.orgMon May 30 17:22:22 UTC 2011
- Previous message: [CentOS] Getting the return value of the last command run
- Next message: [CentOS] Getting the return value of the last command run
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, May 30, 2011 at 11:24:19AM -0500, Robert Nichols wrote:
> $ true | false | false | true | true
> $ echo ${PIPESTATUS[*]}
> 0 1 1 0 0
Note that this is bash-ism; don't depend on it in a POSIX environment!
--
rgds
Stephen
- Previous message: [CentOS] Getting the return value of the last command run
- Next message: [CentOS] Getting the return value of the last command run
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list