Why 0 is true but false is 1 in the shell?
It’s a convention, but a particularly useful one when you think about it. In general, if a program succeeds that’s all you need to know. If it fails, however, you might need to know all kinds of information about the failure – why it happened, how to fix it, etc. Having zero mean ‘success’ and … Read more