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

dircolors: manage the --print-ls-colors pipe option

This commit is contained in:
Sylvestre Ledru 2023-12-03 10:34:33 +01:00
parent f5776bc511
commit dabbcff9fb
2 changed files with 23 additions and 4 deletions

View file

@ -159,6 +159,16 @@ fn test_quoting() {
.no_stderr();
}
#[test]
fn test_print_ls_colors() {
new_ucmd!()
.pipe_in("OWT 40;33\n")
.args(&["--print-ls-colors"])
.succeeds()
.stdout_is("\x1B[40;33mtw\t40;33\x1B[0m\n")
.no_stderr();
}
#[test]
fn test_extra_operand() {
new_ucmd!()