Exit codes #45
Unanswered
patriksvensson
asked this question in
Ideas and suggestions
Replies: 1 comment 2 replies
-
Doesn't this contradict POSIX / UNIX conventions? At least for scripting use, I expect the program to have succeeded if and only of exit code is zero. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Exit codes can be complex. I suggest introducing two new properties,
code
andisError
, to better describe an exit code.The
code
property would be a union type:integer | ExitCodeCriteria
, whereExitCodeCriteria
is an object containing two properties:greaterThan
andlessThan
. The value oflessThan
must be greater than that ofgreaterThan
.The
isError
property would be aboolean
indicating whether the exit code should be considered an error.Example:
Beta Was this translation helpful? Give feedback.
All reactions