summaryrefslogtreecommitdiffstats
path: root/tests/bfs
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-06-30 10:25:42 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-06-30 10:25:42 -0400
commit2ea6a1d7b99dbb389ec81054d136e5030717d52a (patch)
tree7109848fa4c720608574a40f3523727d1751ec84 /tests/bfs
parent27dc7a126d6c00b7a41e0559254928555200ee42 (diff)
downloadbfs-2ea6a1d7b99dbb389ec81054d136e5030717d52a.tar.xz
color: Compare values too when deciding to smart-case
Diffstat (limited to 'tests/bfs')
-rw-r--r--tests/bfs/color_ext_case.out2
-rw-r--r--tests/bfs/color_ext_case.sh7
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/bfs/color_ext_case.out b/tests/bfs/color_ext_case.out
index c3ded3a..4e7258d 100644
--- a/tests/bfs/color_ext_case.out
+++ b/tests/bfs/color_ext_case.out
@@ -16,10 +16,10 @@
rainbow/sgid
rainbow/pipe
rainbow/ow
+rainbow/file.txt
rainbow/sugid
rainbow/suid
rainbow/sticky
rainbow/file.dat
-rainbow/file.txt
rainbow/mh1
rainbow/mh2
diff --git a/tests/bfs/color_ext_case.sh b/tests/bfs/color_ext_case.sh
index 91f1f59..4adba69 100644
--- a/tests/bfs/color_ext_case.sh
+++ b/tests/bfs/color_ext_case.sh
@@ -1 +1,6 @@
-LS_COLORS="*.gz=01;31:*.GZ=01;32:*.tAr=01;33:*.TAR.gz=01;34:*.tar.GZ=01;35:" bfs_diff rainbow -color
+# *.gz=01;31:*.GZ=01;32 -- case sensitive
+# *.tAr=01;33:*.TaR=01;33 -- case-insensitive
+# *.TAR.gz=01;34:*.tar.GZ=01;35 -- case-sensitive
+# *.txt=35:*TXT=36 -- case-insensitive
+export LS_COLORS="*.gz=01;31:*.GZ=01;32:*.tAr=01;33:*.TaR=01;33:*.TAR.gz=01;34:*.tar.GZ=01;35:*.txt=35:*TXT=36"
+bfs_diff rainbow -color