Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
balthild opened this issue Nov 5, 2024 · 2 comments · May be fixed by #1854
Open
1 task done

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

balthild opened this issue Nov 5, 2024 · 2 comments · May be fixed by #1854

Comments

@balthild
Copy link

balthild commented Nov 5, 2024

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

@xiaq
Copy link
Member

xiaq commented Jan 3, 2025

There are a few workarounds to suppress the "Terminate batch job" prompt documented here: https://superuser.com/questions/1705792/how-to-suppress-windows-batch-job-termination-confirmation

@xiaq
Copy link
Member

xiaq commented Jan 3, 2025

See my comment in #1854 about this feature request; I'm leaning towards rejecting this, but maybe it's a good idea to special-case .elv files on Windows instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ❓Triage
Development

Successfully merging a pull request may close this issue.

2 participants