mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
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.
This commit is contained in:
1 parent
0cc7aa3a29
commit
b63b1b4ce2
2 files changed
+5
-1
No files matched your search
@@ -1,5 +1,9 @@
|
||||
2007-10-29 Jim Meyering <meyering@redhat.com>
|
||||
|
||||
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.
|
||||
|
||||
|
||||
+1
-1
@@ -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='[0;31m'; \
|
||||
grn='[0;32m'; \
|
||||
lgn='[1;32m'; \
|
||||
|
||||
Reference in new issue
Block a user