http://bugs.winehq.org/show_bug.cgi?id=7361
Summary: cmd.exe "exit" command ignores exitCode parameter Product: Wine Version: unspecified Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-console AssignedTo: wine-bugs@winehq.org ReportedBy: avarga@freemail.hu
That is, "exit 1" actually exits with zero exitcode. This makes it unsuitable for use in nmake makefiles.