Re:Understanding Bash (2018)
by AdmiralAsshat on Thursday January 16, 2020 @10:32AM
(#22065428)
It took me awhile to wrap my head around when I initially encountered it, but the idea made sense after I thought about it. If the process exited successfully, we don't care--it did what it was supposed to do. But if it failed, we'd probably like as much info about why it failed as possible; and so having the exit status be more like an error code clearly has some value.
[ Parent
| on HN ]
Re:Understanding Bash (2018)
by elmigranto on Thursday January 16, 2020 @11:05AM
(#22065788)
Good point. I think the fact that it’s named “exit status” instead of “error code” is primary confusion factor.