From cb690a6e3fe86e3b9109374a3f7608cd9fa981bb Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Thu, 11 Jul 2013 10:47:11 +0200 Subject: [PATCH] propagate error code along the pipes for the coloring wrapper --- .bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bashrc b/.bashrc index 5a91b83..d45922c 100644 --- a/.bashrc +++ b/.bashrc @@ -161,6 +161,7 @@ alias ipy='ipython -pylab -p scipy --editor="gvim"' # usage: cm ./build_script function cm() { + set -o pipefail $@ 2>&1 | colout -t cmake | colout -t g++ }