3 ms·
Interesting. When I’ve used sysexits, I only ever used EX_USAGE, and I felt like I “should” be using the others, too. Seems like other people have the same conc
by klodolph 5y ago
Interesting. When I’ve used sysexits, I only ever used EX_USAGE, and I felt like I “should” be using the others, too. Seems like other people have the same conclusion, that only signaling the difference between incorrect invocation and other types of failures is worth standardizing.
- derefr 5y agoBasically, the difference between "a logic error in the calling script — so the caller should abort too, because the caller has been proven as of that execution-step to be misprogrammed, and so continuing could be dangerous"; vs "anything else that isn't the calling script's fault." For actually digging into the "anything else" and fixing it (if you even have the privileges on the offending system) — well, that's what error messages are for.