From: Richard Hansen Date: Wed, 17 Jun 2015 21:11:19 GMT Subject: [PATCH v2 0/2] redo fix for test-lib.sh color support Message-ID: <1434575481-24604-1-git-send-email-rhansen@bbn.com> In-Reply-To: Changes from v1: * Eliminate the case statement and assume the user passed a sane value for $1. * Use the same test as the non-colorized version of say_color() when determining whether to suppress the output: assume that a message can only be suppresed if $1 is the empty string. This avoids the need to test whether the variable say_color_$1 is set. * Rename say_color_sgr0 to say_color_reset. * Add a new variable say_color_ (set to the empty string) as a way of documenting that $1 is expected to be the empty string for normal text. Richard Hansen (2): Revert "test-lib.sh: do tests for color support after changing HOME" test-lib.sh: fix color support when tput needs ~/.terminfo t/test-lib.sh | 99 ++++++++++++++++++++++++++++------------------------------- 1 file changed, 47 insertions(+), 52 deletions(-) -- 2.4.3