diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2019-06-27 19:16:20 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2019-06-27 19:16:44 -0400 |
commit | 86da865d82a977c4db084327274912d228f2e9f5 (patch) | |
tree | 594796764ecf3469558906345642ab68fdd26db9 /tests.sh | |
parent | 257a7060906a25e299e63a367272251a8dc05b83 (diff) | |
download | bfs-86da865d82a977c4db084327274912d228f2e9f5.tar.xz |
color: Fix a crash if LS_COLORS ends in *
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -617,6 +617,7 @@ bfs_tests=( test_color_missing_colon test_color_no_stat test_color_L_no_stat + test_color_star test_execdir_plus @@ -2099,6 +2100,11 @@ 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_color_star() { + # Regression test: don't segfault on LS_COLORS="*" + LS_COLORS="*" bfs_diff rainbow -color +} + function test_deep() { closefrom 4 |