Skip to content

Signed vs unsigned exit code #9

@blackgnezdo

Description

@blackgnezdo
% ghci /usr/ports/pobj/ghc-8.10.1/ghc-8.10.1/libraries/process/tests/process009.hs                                                        > :main
ExitFailure 129
Just (ExitFailure 129)
Just (ExitFailure 129)

Expected:

% cat /usr/ports/pobj/ghc-8.10.1/ghc-8.10.1/libraries/process/tests/process009.stdout
ExitFailure (-1)
Just (ExitFailure (-1))
Just (ExitFailure (-1))

This is probably fine and should be fixed in the test suite since ExitFailure Int is documented as
indicates program failure with an exit code. The exact interpretation of the code is operating-system dependent.

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