This is part XIX of cmd engine rewrite.
It's the last MR (for now) for setting success/failure return code on internal commands.
The remaining todo in this area are due to: - incompletly implemented builtin (eg: TYPE not handling multiple files, not wildcards; CHOICE missing a bunch of features; ...), - some commands (like START) being implemented as external executables, hence forcing RETURN CODE = ERRORLEVEL which is not always wanted,
-- v2: cmd: Cleanup transition bits. cmd: Improve return code/errorlevel support for external commands. cmd: Move empty batch command handling to WCMD_batch() callers. cmd: Set success/failure return code for START command. cmd: Set success/failure return code for MKLINK command. cmd: Add more tests for return codes in builtin commands. cmd: Get rid of CTTY command.