windosu icon indicating copy to clipboard operation
windosu copied to clipboard

Propagate exit code

Open rstuven opened this issue 11 years ago • 0 comments

Given a failing command:

C:\>type fail.bat
@exit /b 1

C:\>fail.bat

C:\>echo %errorlevel%
1

But...

C:\>sudo fail.bat

C:\>echo %errorlevel%
0

rstuven avatar Jun 19 '14 14:06 rstuven