mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 19:47:45 +00:00
dircolors: fix empty COLORTERM matching with ?* pattern
should fix tests/misc/dircolors
This commit is contained in:
parent
1ffb6fd5b1
commit
1db2e2356a
2 changed files with 25 additions and 1 deletions
|
@ -253,3 +253,14 @@ fn test_repeated() {
|
|||
new_ucmd!().arg(arg).arg(arg).succeeds().no_stderr();
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_colorterm_empty_with_wildcard() {
|
||||
new_ucmd!()
|
||||
.env("COLORTERM", "")
|
||||
.pipe_in("COLORTERM ?*\nowt 40;33\n")
|
||||
.args(&["-b", "-"])
|
||||
.succeeds()
|
||||
.stdout_is("LS_COLORS='';\nexport LS_COLORS\n")
|
||||
.no_stderr();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue