oppiliappan/eva

Exit Status Code for failure

Closed this issue · 2 comments

eva '3 / 0' 2> /dev/null
echo status $?

expect: 1

received: 0

Should it exit with code 1 though? Many applications don't fail on division by zero, they just flag it as undefined. pandas and SQL are two notable examples of this.

im still not too sure about what to do. perhaps returning the exit status code when an error is encountered would help in scripts?

for now i shall implement what @KSXGitHub suggested.