]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ls(1): actually restore proper behavior
authorkevans <kevans@FreeBSD.org>
Thu, 21 May 2020 14:39:00 +0000 (14:39 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 21 May 2020 14:39:00 +0000 (14:39 +0000)
commit1785410f944397f53578ee96a4e8e318cf237a7a
tree0c04268a27c330231b14c02bbc25295d8fc13595
parent2e6d66a1370b9efa5147fbe807f79e2c174a60a0
ls(1): actually restore proper behavior

Highlights:
- CLICOLOR in the environment should imply --color=auto to maintain
  compatibility with historical behavior
- -G should set CLICOLOR and imply --color=auto

The manpage has been updated to draw the connection between -G and --color;
the former is in-fact a sort of compromise between --color=always and
--color=auto, where we'll output color regardless of the environment lacking
CLICOLOR/COLORTERM assuming stdout is a tty.

X-MFC-With: r361318
bin/ls/ls.1
bin/ls/ls.c