From 35a87e80937d06eab3b605dc038b48da590fe88e Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 18 Dec 2011 21:43:51 +0100 Subject: [PATCH] set_colors(): Redirect input to `stty size` to make it work after commit a3797a63a30579be3ba5418aad7e76fd520f9aee. --- bin/isolated-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index d2ea319bd..1bcc5c907 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -415,7 +415,7 @@ set_colors() { # If stdout is a pipe, the parent process can export COLUMNS # if it's relevant. [[ $COLS == 0 && $EBUILD_PHASE != depend ]] && \ - COLS=$(set -- $(stty size 2>/dev/null) ; echo $2) + COLS=$(set -- $(stty size /dev/null) ; echo $2) (( COLS > 0 )) || (( COLS = 80 )) # Now, ${ENDCOL} will move us to the end of the -- 2.26.2