-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
or
and mi
are different
#10
Comments
Thank you for the detailed report. This should be fixed. I misinterpreted (or rather: didn't really know) what
I can reproduce this. You are right.
This is interesting, because it probably requires me to rethink the API of
👍
Yes, absolutely. For the |
Or you could apply the fallback when you construct the |
The problem is that those fields are currently public. They were intended for users of this library that don't want to rely on one of the provided methods (like |
On my system,
is printed without any color, despite
ls
showing it bold and red. The reason is that I haveor=40;31;01:mi=00:
in myLS_COLORS
, and lscolors doesso
mi=00
overwritesor
.My understanding of the semantics is that
or
(orphan) is for broken links, andmi
(missing) is for files that don't exist. So inbroken
gets the redor
color, andnowhere
gets the yellowmi
color. Additionally,mi
falls back toor
ifmi
is not set, soLS_COLORS='or=31;01:'
results in both getting the redor
color.Finally, setting a key (besides
rs
) to a string containing only zeros is the same as having it unset, soLS_COLORS='or=31;01:mi=00:
keeps everything red.I'm not sure if
lscolors
tries to color links differently than link targets, but regardless,mi=00:
shouldn't be overwriting theor
color.The text was updated successfully, but these errors were encountered: