Skip to content

Propagate exit code #2

Description

@tachuris

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions