Skip to content

file() with undef contents makes -e report EBADF #13

@FGasper

Description

@FGasper

To correctly mock nonexistence of a file, -e should set $! to ENOENT, not EBADF. Otherwise logic that does due diligence and reports non-ENOENT failures after a -e check will report a failure.

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