summaryrefslogtreecommitdiff
path: root/gl
diff options
context:
space:
mode:
authorGuilherme de Almeida Suckevicz <guito.linux@gmail.com>2014-04-16 16:38:49 +0100
committerPádraig Brady <P@draigBrady.com>2014-04-17 02:16:04 +0100
commit08783f100f511b010d040d6119c107cc0d5bc5fc (patch)
tree15a436cea6ba502ccdfe3493450766771209619f /gl
parent943f3592ca10caaee7b991078f33a4e0f985a2f8 (diff)
downloadcoreutils-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 'gl')
0 files changed, 0 insertions, 0 deletions