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

Loosen extension requirements for executable-like files #992

Closed
Voltra opened this issue Nov 20, 2019 · 2 comments
Closed

Loosen extension requirements for executable-like files #992

Voltra opened this issue Nov 20, 2019 · 2 comments
Labels
external-commands Issues related to external commands polish this problem makes nu feel unpolished

Comments

@Voltra
Copy link

Voltra commented Nov 20, 2019

Is your feature request related to a problem? Please describe.
Let's say we're on windows, in any terminal we can use npm to run it, not npm.CMD, just plain npm. In NuShell, which npm will find the correct file, however running npm will result in an error : file not found. (os error 2). Using npm.cmd will run the program just fine.

Describe the solution you'd like
I'd like to be able to run programs (such as npm) that are available in PATH that have fairly executable-like extensions (e.g. .cmd on windows).

Describe alternatives you've considered
I can't think of any alternative solution.

Additional context
This is a problem encountered mostly with installed binaries (or executable scripts) from any package manager.
Note that on Windows the PATHEXT environment variable lists the extensive list of file extensions in search order.

@steveklabnik
Copy link

Ran into this with Visual Studio: Code today. 👍

@thegedge thegedge added external-commands Issues related to external commands polish this problem makes nu feel unpolished labels Feb 10, 2020
@jntrnr
Copy link
Collaborator

jntrnr commented Apr 12, 2020

This should be better now. If you still find cases that don't work with the latest master please re-open

@jntrnr jntrnr closed this as completed Apr 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-commands Issues related to external commands polish this problem makes nu feel unpolished
Projects
None yet
Development

No branches or pull requests

4 participants