Skip to content

Getting error code number #68

Description

@Elsie19

I cannot seem to find any function/macro in this library that I can use to get an exit code from a command. The closest I found is run_cmd!(), but that errors to something like:

Running ["bash" "-c" "time ./build/debug/foo"] exited with error; status code: 1 at src/main.rs:83

with no way to extract that 1 unless I parsed the string itself, which is not ideal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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