From: Jim Meyering Date: Mon, 29 Oct 2007 09:37:09 +0000 (+0100) Subject: Don't try to colorize a dumb terminal. X-Git-Tag: v6.9.89~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b63b1b4ce2612960f785670481ff3a9fa68c4bd3;p=thirdparty%2Fcoreutils.git Don't try to colorize a dumb terminal. * build-aux/check.mk (am__tty_colors): Skip colors if $TERM is "dumb". Thanks to Bob Proulx. --- diff --git a/ChangeLog b/ChangeLog index 439921354d..d9a05e6616 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2007-10-29 Jim Meyering + Don't try to colorize a dumb terminal. + * build-aux/check.mk (am__tty_colors): Skip colors if $TERM is "dumb". + Thanks to Bob Proulx. + Remove gnulib's printf-posix module, for now. * bootstrap.conf (gnulib_modules): It caused too many test failures. diff --git a/build-aux/check.mk b/build-aux/check.mk index 8e43147a33..862b3e52ba 100644 --- a/build-aux/check.mk +++ b/build-aux/check.mk @@ -60,7 +60,7 @@ END { \ # this fails; a conservative approach. Of course do not redirect # stdout here, just stderr... am__tty_colors = \ -if test -t 1 2>/dev/null && test -n "$$TERM"; then \ +if test -t 1 2>/dev/null && test -n "$$TERM" && test "$$TERM" != dumb; then \ red=''; \ grn=''; \ lgn=''; \