-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Internal commands don't set ERRORLEVEL #28
Comments
@PerditionC presumably this can be closed now? |
Yes, I left it open because I wanted to see if a similar fix was still needed for comcom |
I don't have much recent experience with DOS batchfiles so the example below may be flawed, but I just tested with Dosemu2 and MS-DOS 6.22 and it seems that it doesn't report the success/fail of internal commands. With an external command the success / fail worked as expected.
|
Related to #22 - exit always returns zero from a subshell, but exiting a batch file (as long as it doesn't end with exit) returns the errorlevel. This is specific to a non-permanent shell (subshell). exit should return the errorlevel to the calling shell. 'exit' probably shouldn't do anything at all for a /P shell (including alter the errorlevel).
|
Internal commands should set the ERRORLEVEL, just like normal commands. However, it doesn't happen as we can see below.
The text was updated successfully, but these errors were encountered: