Skip to content

Wrong exit code at source broken devce #933

@oech3

Description

@oech3
$run0 dmsetup create ioerr --table "0 8 error" && run0 chmod 777 /dev/mapper/ioerr
bash$  source /dev/mapper/ioerr
bash: /dev/mapper/ioerr: Input/output error # returns 1
brush$ source /dev/mapper/ioerr
error: /dev/mapper/ioerr: failed to decode UTF-8 characters (detected near line 1 col 1) # returns 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: compatRelated to compatibility with standard shellspriority: lowLow-priority items that aren't of high focus for the project

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions