1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-09-16 03:36:18 +00:00

dircolors: add support for stdin "-" (fix: #3589)

This commit is contained in:
Jan Scheer 2022-06-03 02:08:09 +02:00
parent 68cc9312c8
commit f1b38e94cd
No known key found for this signature in database
GPG key ID: C62AD4C29E2B9828
2 changed files with 18 additions and 6 deletions

View file

@ -131,6 +131,16 @@ fn test_exclusive_option() {
.stderr_contains("mutually exclusive");
}
#[test]
fn test_stdin() {
new_ucmd!()
.pipe_in("owt 40;33\n")
.args(&["-b", "-"])
.succeeds()
.stdout_is("LS_COLORS='tw=40;33:';\nexport LS_COLORS\n")
.no_stderr();
}
fn test_helper(file_name: &str, term: &str) {
new_ucmd!()
.env("TERM", term)