ls: Match the gnu behavior for colors#5603
ls: Match the gnu behavior for colors#5603sylvestre merged 4 commits intouutils:mainfrom sylvestre:gnu-legacy
Conversation
|
it is failing but I would like to get the results |
|
GNU testsuite comparison: |
1 similar comment
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
src/uu/ls/Cargo.toml
Outdated
| terminal_size = { workspace = true } | ||
| glob = { workspace = true } | ||
| lscolors = { workspace = true } | ||
| lscolors = { workspace = true, features = ["gnu_legacy"] } |
There was a problem hiding this comment.
Is this necessary? We didn't have the nu-ansi-term feature mentioned here.
cakebaker
left a comment
There was a problem hiding this comment.
I'm not sure whether this is the intended behavior or a bug. When running ls --color=always and redirecting the output to a file, the output of uutils ls and GNU ls differs. All but the first escape code are different, with the ones from uutils ls being prefixed with ^[[0m.
|
how do you compare the output ? |
|
Yes, that's what I'm using. |
|
Here the steps I did: |
|
The difference is that GNU ls does not immediately reset the text style after each directory name. It only resets (^[[0m) before starting a new colored text, or at the end of the output. |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
No description provided.