diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-05-05 23:16:01 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-05-05 23:16:01 -0400 |
commit | a3c1c3ed54d9d595feb1df38e775af3d6ff9facd (patch) | |
tree | 4d7347b1cc073be521cb8f0d6e5b36ab5e091021 /tests.sh | |
parent | df7d960b0d7e1f9bd8aa58654760e41b6282f78a (diff) | |
download | bfs-a3c1c3ed54d9d595feb1df38e775af3d6ff9facd.tar.xz |
color: Don't stat() if we don't need to
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -610,6 +610,8 @@ bfs_tests=( test_color_ext_override test_color_ext_underride test_color_missing_colon + test_color_no_stat + test_color_L_no_stat test_execdir_plus @@ -2056,6 +2058,14 @@ function test_color_missing_colon() { LS_COLORS="*.txt=01" bfs_diff rainbow -color } +function test_color_no_stat() { + LS_COLORS="mh=0:ex=0:sg=0:su=0:st=0:ow=0:tw=0:*.txt=01:" bfs_diff rainbow -color +} + +function test_color_L_no_stat() { + LS_COLORS="mh=0:ex=0:sg=0:su=0:st=0:ow=0:tw=0:*.txt=01:" bfs_diff -L rainbow -color +} + function test_deep() { closefrom 4 |