Skip to content

Instantly share code, notes, and snippets.

@mgpld
mgpld / pipefail
Created January 14, 2012 14:13
Detecting failure in piped commands (bash)
# By default the failure is note detected:
set -o | grep pipefail
pipefail off
No manual entry for fear
echo $?
0
# Detecting the failure
set -o pipefail