Skip to content
This repository was archived by the owner on Jun 26, 2023. It is now read-only.
This repository was archived by the owner on Jun 26, 2023. It is now read-only.

PSColor eats the last error code #23

@erichiller

Description

@erichiller

ie.

> Do-SomeInvalidCommand
# some error about Do-SomeInvalidCommand not being a real command
> $?
True
while ( $True -eq $True ) {
    Start-Sleep 1;
    echo "loop";
}
# Hit Ctrl+C
> $?
True

Both of these should have resulted in $? being False, as they are without PSColor imported.

I disabled all other modules for testing it was certainly PSColor which was absorbing the last error code.

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