Skip to content

Forward compatibility: highlight unknown type -w outputs correctly #316

@danielshahaf

Description

@danielshahaf

#298 (comment) (channeling @m0vie) points out that the catchall branch of the type -w output checker is not forward-compatible: if type -w exited zero and emitted an unrecognised string, the code won't handle that.

The fix would probably be to make line 333 check for $? == 0 and do $something in that case.

(Labelling "Regression" since there's no separate "Forward compatibility" label)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions