Skip to content

Prefer .ps1 than .cmd when both file exists in path #1853

@balthild

Description

@balthild

What new feature should Elvish have?

Currenlty on Windows, when both .ps1 and .cmd exists for a command (e.g. scoop), elvish will prefer invoking the .cmd.

However, cmd scripts are bad on UX. Specifically, It prompts "Terminate batch job (Y/N)" when Ctrl+C pressed. Therefore, it should be avoided if alternatives exists.

image

Output of "elvish -version"

0.21.0+official

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ❓Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions