Get error codes of all commands in a bash pipe
If you pipe commands together in bash, the resulting error code will be for the last command in the pipe. To get all the error codes, use the $PIPESTATUS variable
Written by Ben Kennish
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Code
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#