From: Arfrever Frehtes Taifersar Arahesis Date: Sun, 18 Dec 2011 20:43:51 +0000 (+0100) Subject: set_colors(): Redirect input to `stty size` to make it work after X-Git-Tag: v2.2.0_alpha82~44 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=35a87e80937d06eab3b605dc038b48da590fe88e;p=portage.git set_colors(): Redirect input to `stty size` to make it work after commit a3797a63a30579be3ba5418aad7e76fd520f9aee. --- 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