News for hackers. Stuff that matters.
Re:No_color by quesera on Saturday February 26, 2022 @07:47PM (#30484027)
I think it's fairly common.

  NO_COLOR=1
  NO_COLOR=true
  NO_COLOR=yes
Rather than parsing all the permutations, the usual evaluation of env vars that are expected to hold a boolean type is just the equivalent of:

  #ifdef NO_COLOR
Re:No_color by Monory on Saturday February 26, 2022 @08:02PM (#30484165)
Well, in ZSH [[ -v VAR ]] can actually differentiate between unset and null variables

And

NO_COLOR=

would lead to an non-intuitive behavior

Re:No_color by Aeolun on Saturday February 26, 2022 @09:37PM (#30484794)
I think the implication is that it should have a value.