Timeline for Interpretation of Truthy/Falsey
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 2, 2017 at 5:16 | comment | added | user62131 |
@RosLuP: EXIT_SUCCESS is 0 on basically every OS (because 0 has to work as success). EXIT_FAILURE is a specific value on each OS, but the actual value varies by OS (1 is common, though). Each OS also has its own rules for what counts as truthy and what counts as falsey on exit codes (e.g. UNIX considers all nonzero codes falsey; I've heard rumours VMS uses odd versus even).
|
|
Dec 1, 2016 at 13:33 | comment | added | jimmy23013 | @RosLuP They are used as truthy or falsy in shells like Bash. | |
Nov 30, 2016 at 15:08 | comment | added | user58988 | Exit 0 means "EXIT_SUCCESS" or something as that string; exit with not zero is indefinite (possibly there is another string one use for failure example"EXIT_FAIL" ... It is convenient make 0, all ok; number != 0 for error code (because fail can be for many reason and the success case has need only one value). But this has nothing in common with true or false values | |
Nov 30, 2016 at 1:41 | history | answered | BenGoldberg | CC BY-SA 3.0 |