Skip to content

Instantly share code, notes, and snippets.

@bfulton
bfulton / test.sh
Created November 2, 2014 20:00 — forked from tlunter/test.sh
#!/bin/bash
set -e -o pipefail
set +e
{ echo "test"; echo "test2"; } | cat > /dev/null
echo $?
set -e
set +e
{ echo "test"; echo "test2"; } > /dev/null