Description
Steps to reproduce:
1) create (with your favorite test editor) a file called test.bat with the command
exit /b 1
2) open a command line interpreter and run the script by using:
call test.bat
3) run the command
echo %errorlevel%
Under React OS (r69843) you will get a 0
But in Windows 7 it returns 1!
(This is the only one version of Windows that I have to test this, could you please test it on others?)
That I think is the most sensitive behavior, since many times you need to know the exit status of the called script). However this NOT documented
in MSD (https://technet.microsoft.com/en-us/library/bb490873.aspx) which says nothing about %errorlevel% !!
I have also tested this in FreeDos 1.1 (since React OS cmd is derived from its command interpreter), and I saw it has the same behavior (it returns 0).
Attachments
Issue Links
- blocks
-
CORE-8002 METABUG - cmd.exe Command-line interpreter bugs
- Open