> Note that the exit value of true is 0, and the exit value of false is 1. This is somewhat counterintuitive, and it's the exact opposite of most programming languages.
"Happy families are all alike; every unhappy family is unhappy in its own way."
"Happy families are all alike; every unhappy family is unhappy in its own way."
https://stackoverflow.com/questions/4419952/difference-betwe...
I have also encountered this in C#
https://docs.microsoft.com/en-us/dotnet/api/system.environme...
I think internally it was represented as all 0 bits for true, all 1 bits for false.
To be pendantic, at least in terms of bash if's, ['s, and test's, I think 0 is true and non-0 is non-true though, no?