summaryrefslogtreecommitdiff
path: root/NEWS
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 /NEWS
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 'NEWS')
-rw-r--r--NEWS6
1 files changed, 6 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 1d3ecf1ad..55f0b5881 100644
--- a/NEWS
+++ b/NEWS
@@ -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