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 /NEWS | |
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 'NEWS')
-rw-r--r-- | NEWS | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -51,6 +51,12 @@ GNU coreutils NEWS -*- outline -*- od accepts a new option: --endian=TYPE to handle inputs with different byte orders, or to provide consistent output on systems with disparate endianness. +** Changes in behavior + + ls with none of LS_COLORS or COLORTERM environment variables set, + will now honor an empty or unknown TERM environment variable, + and not output colors even with --colors=always. + ** Improvements chroot has better --userspec and --group look-ups, with numeric IDs never |