Re: [PATCH] test-lib.sh: do tests for color support after changing HOME

2015-01-06 Thread Junio C Hamano
Richard Hansen rhan...@bbn.com writes: If ncurses needs ~/.terminfo for the current $TERM, then tput will succeed before changing HOME to $TRASH_DIRECTORY but fail afterward. Move the tests that determine whether there is color support after changing HOME so that color=t is set if and only if

[PATCH] test-lib.sh: do tests for color support after changing HOME

2015-01-05 Thread Richard Hansen
If ncurses needs ~/.terminfo for the current $TERM, then tput will succeed before changing HOME to $TRASH_DIRECTORY but fail afterward. Move the tests that determine whether there is color support after changing HOME so that color=t is set if and only if tput would succeed when say_color() is run.