break does change the exit code in cmd.exe command line
#46
andry81
started this conversation in
Show and tell
Replies: 0 comments
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.
-
Examples:
Sets exit code to 1 and returns 0:
Output:
ERRORLEVEL=0To workaround:
ERRORLEVEL=1Note
This issue happens additionally to the exit code reset after
cmd.exestart: #45Note
The
breakdoes change the exit code onSIGINT: #48Beta Was this translation helpful? Give feedback.
All reactions