Skip to content

Correct very old exit code logic? #116

@plutonium-239

Description

@plutonium-239

Hello, I was just passing by and noticed that in the acknowledgements of the readme you write

Strangely, Go doesn't just provide this, it requires magic like exiterr.Sys().(syscall.WaitStatus) and more.

However, this doesn't seem to be true, as cmd.ProcessState.ExitCode() returns the exit code and was introduced in go1.12 released > 6 years ago.

It works correctly, I've been using it in my project rbcp which calls robocopy on windows and parses it's streaming output (I did not know of this library at that time 😅).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions