News for hackers. Stuff that matters.
Re:Understanding Bash (2018) by michaelcampbell on Thursday January 16, 2020 @11:18AM (#22065933)
Some older versions of BASIC did this as well, except false was -1.

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?

There are no comments on this comment yet.