DEV Community

Discussion on: Why the standard exit code for a shell program is zero?

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

And extrapolating from this, the most logical value for representing that singular success case with an integer is zero, because it doesn't care one bit (no punt intended) about what type of integer it is (zero is zero, regardless of bit width, bit or byte order, or whether it's signed or not).