I have a scenario where a windows application that I execute in CI exits with -1073740791
eg Stack Overflow. One cmd, this can be caught obviously via %errorlevel%
but on bash, at least this exit code maps to 127
in $?
.
Obviously, bash on windows should not break scripting so anything above or beyond 0-255 is not fine.
Question is: Is there any special variables or mechanism directly in git-bash itself to catch this actual value ? In this case, the executable is testsuite (think off google benchhmark or google test) and exit code 127 - command not found is not helpful at all.