diff options
author | Guilherme de Almeida Suckevicz <guito.linux@gmail.com> | 2014-04-16 16:38:49 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2014-04-17 02:16:04 +0100 |
commit | 08783f100f511b010d040d6119c107cc0d5bc5fc (patch) | |
tree | 15a436cea6ba502ccdfe3493450766771209619f /ChangeLog-2008 | |
parent | 943f3592ca10caaee7b991078f33a4e0f985a2f8 (diff) | |
download | coreutils-08783f100f511b010d040d6119c107cc0d5bc5fc.tar.xz |
ls: don't output colors with unknown TERM env variable
--colors controls whether to output colors depending on
whether we're connected to a terminal or not, while this
change gives control over which terminals we output colors to.
* NEWS: Mention the change in behavior.
* src/ls.c (known_term_type): A new function to search the static
list from dircolors.h
(parse_ls_colors): Honor the TERM when both LS_COLORS and COLORTERM
are non empty.
* tests/ls/color-term.sh: A new test.
* tests/local.mk: Reference the new test.
Fixes http://bugs.gnu.org/15992
Diffstat (limited to 'ChangeLog-2008')
0 files changed, 0 insertions, 0 deletions