From efb983406cba85a92573f50cfc94c455422e7d3a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 3 Jul 2025 13:40:43 -0400 Subject: color: Match the BSD $LSCOLORS behaviour more closely BSD/macOS ls(1) don't reject overlong or odd-length $LSCOLORS values (although they can warn, which we don't). They also don't use the "intense" background colors for capital letters; instead, that enables underline on FreeBSD, or (foreground) bold on macOS. We copy FreeBSD here. --- tests/bfs/color_bsd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/bfs/color_bsd.sh') diff --git a/tests/bfs/color_bsd.sh b/tests/bfs/color_bsd.sh index f8a777f..2e99f0b 100644 --- a/tests/bfs/color_bsd.sh +++ b/tests/bfs/color_bsd.sh @@ -1 +1 @@ -LSCOLORS="eB" bfs_diff rainbow -color +LSCOLORS="exFxcXDXbxeGxdXb" bfs_diff rainbow -color -- cgit v1.2.3