From owner-svn-src-all@freebsd.org Thu Aug 16 01:24:03 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5ECE210773E3; Thu, 16 Aug 2018 01:24:03 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CAAED86E81; Thu, 16 Aug 2018 01:24:02 +0000 (UTC) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id w7G1O1WM051119; Wed, 15 Aug 2018 18:24:01 -0700 (PDT) (envelope-from freebsd@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id w7G1O1mb051118; Wed, 15 Aug 2018 18:24:01 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201808160124.w7G1O1mb051118@pdx.rh.CN85.dnsmgr.net> Subject: Re: svn commit: r337884 - stable/11/bin/ls In-Reply-To: <201808160118.w7G1IL90006511@repo.freebsd.org> To: Kyle Evans Date: Wed, 15 Aug 2018 18:24:01 -0700 (PDT) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Aug 2018 01:24:03 -0000 > Author: kevans > Date: Thu Aug 16 01:18:20 2018 > New Revision: 337884 > URL: https://svnweb.freebsd.org/changeset/base/337884 > > Log: > Revert r337826: MFC of ls(1) COLORTERM honoring > > It was not ready, and was much-objected-to. Thanks, just objected to, not much. I think once the --color=foo and the NULL COLORTERM fix goes in this should work as expected and not cause the issue seen by the user, or if it does I can tell them how to get color VIM, but not color ls without too much magic. > > Modified: > stable/11/bin/ls/ls.1 > stable/11/bin/ls/ls.c > Directory Properties: > stable/11/ (props changed) > > Modified: stable/11/bin/ls/ls.1 > ============================================================================== > --- stable/11/bin/ls/ls.1 Thu Aug 16 00:50:14 2018 (r337883) > +++ stable/11/bin/ls/ls.1 Thu Aug 16 01:18:20 2018 (r337884) > @@ -32,7 +32,7 @@ > .\" @(#)ls.1 8.7 (Berkeley) 7/29/94 > .\" $FreeBSD$ > .\" > -.Dd August 8, 2018 > +.Dd December 1, 2015 > .Dt LS 1 > .Os > .Sh NAME > @@ -140,8 +140,6 @@ after each that is a > Enable colorized output. > This option is equivalent to defining > .Ev CLICOLOR > -or > -.Ev COLORTERM > in the environment. > (See below.) > This functionality can be compiled out by removing the definition of > @@ -638,10 +636,6 @@ The > variable still needs to reference a color capable terminal however > otherwise it is not possible to determine which color sequences to > use. > -.It Ev COLORTERM > -See description for > -.Ev CLICOLOR > -above. > .It Ev COLUMNS > If this variable contains a string representing a > decimal integer, it is used as the > @@ -666,9 +660,7 @@ for more information. > .It Ev LSCOLORS > The value of this variable describes what color to use for which > attribute when colors are enabled with > -.Ev CLICOLOR > -or > -.Ev COLORTERM . > +.Ev CLICOLOR . > This string is a concatenation of pairs of the format > .Ar f Ns Ar b , > where > @@ -775,8 +767,6 @@ option for more details. > .It Ev TERM > The > .Ev CLICOLOR > -and > -.Ev COLORTERM > functionality depends on a terminal type with color capabilities. > .It Ev TZ > The timezone to use when displaying dates. > > Modified: stable/11/bin/ls/ls.c > ============================================================================== > --- stable/11/bin/ls/ls.c Thu Aug 16 00:50:14 2018 (r337883) > +++ stable/11/bin/ls/ls.c Thu Aug 16 01:18:20 2018 (r337884) > @@ -374,7 +374,7 @@ main(int argc, char *argv[]) > f_listdot = 1; > > /* Enabling of colours is conditional on the environment. */ > - if ((getenv("CLICOLOR") || getenv("COLORTERM")) && > + if (getenv("CLICOLOR") && > (isatty(STDOUT_FILENO) || getenv("CLICOLOR_FORCE"))) > #ifdef COLORLS > if (tgetent(termcapbuf, getenv("TERM")) == 1) { > > -- Rod Grimes rgrimes@freebsd.org