-
Notifications
You must be signed in to change notification settings - Fork 7
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
Clarify behavior of empty CLICOLOR and CLICOLOR_FORCE #8
Comments
I suggest we update the documentation to state that behavior for the empty case is unspecified so that tools can do either and users are encouraged to always set it with |
Would be fine for me.
Apple is really ignoring the value of that variable altogether? That goes quite against the whole idea... |
Hate to be that guy, especially after this long, but CLICOLOR_FORCE was only ever meant to force ENABLE colors, not force DISABLE colors. It exists because while CLICOLOR enables colors, it should still not output any colors if the output is not a TTY. Therefore, _FORCE was invented. |
The specification does not currently say anything about semantics for
CLICOLOR=
andCLICOLOR_FORCE=
. The example code forCLICOLOR_FORCE
implies thatCLICOLOR_FORCE=
should be equivalent toCLICOLOR_FORCE=1
, but IMO that is confusing. An empty setting should be equivalent to no setting at all.The text was updated successfully, but these errors were encountered: