You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What does 'go version' print? 1.2.1 windows/amd64
On Windows, run the attached .go file. The exitcode that is reported is a "1".
However when you run the attached .bat file, you will see that Windows reports this
error as a 9009.
What happened?
The exitcode that Go is reporting is "1".
The exitcode that Windows is reporting is 9009.
What should have happened instead?
Go should report 9009
Your two programs (.go and .bat) are not the same. I've changed your .bat file to match
what .go program does, and now it (.bat program) reports the same error:
C:\a>type testWindowsExitCode.bat
cmd /C foo
echo %ERRORLEVEL%
C:\a>testWindowsExitCode.bat
C:\a>cmd /C foo
'foo' is not recognized as an internal or external command,
operable program or batch file.
C:\a>echo 1
1
Alex
by Kusold:
Attachments:
The text was updated successfully, but these errors were encountered: