git: ffea732c5192 - main - ls.1: Mention CLICOLOR environment variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Feb 2024 10:55:33 UTC
The branch main has been updated by gbe:
URL: https://cgit.FreeBSD.org/src/commit/?id=ffea732c5192070a6877409428b0a2cc1728aa16
commit ffea732c5192070a6877409428b0a2cc1728aa16
Author: Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2024-02-21 10:54:58 +0000
Commit: Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2024-02-21 10:54:58 +0000
ls.1: Mention CLICOLOR environment variable
Mention CLICOLOR environment variable in the manual page.
PR: 276556
Submitted by: bsdcode at disroot dot org
Reviewed by: imp
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D43970
---
bin/ls/ls.1 | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/bin/ls/ls.1 b/bin/ls/ls.1
index d3daf6e12019..9d4c55b9b17d 100644
--- a/bin/ls/ls.1
+++ b/bin/ls/ls.1
@@ -29,7 +29,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd January 12, 2024
+.Dd February 21, 2024
.Dt LS 1
.Os
.Sh NAME
@@ -244,9 +244,11 @@ but only if
.Dv stdout
is a tty and either the
.Fl G
-flag is specified or the
+flag is specified or one of the environment variables
.Ev COLORTERM
-environment variable is set and not empty.
+or
+.Ev CLICOLOR
+is set and not empty.
.Pp
.Cm never
will disable color regardless of environment variables.