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

do not treat Windows subfolders in $PATH like executables #4688

Closed
Konfekt opened this issue Nov 18, 2019 · 5 comments
Closed

do not treat Windows subfolders in $PATH like executables #4688

Konfekt opened this issue Nov 18, 2019 · 5 comments

Comments

@Konfekt
Copy link

Konfekt commented Nov 18, 2019

On Windows 10, 1903, WSL openSUSE 15.1, every subfolder contained in one of the Windows folders appended to $PATH is handled just like an executable: For example, if in /mnt/c/Program Files (x86)/Lua/5.1/clibs in $PATH there is a folder md5 (but no executable with such a name), then calling md5 on the command-line returns permission denied. Instead, subfolders should not be handled like executables, that is, expected is no such command.

@therealkenc
Copy link
Collaborator

Can't repro here. [md5 makes for a bad test case because I get a suggestion to install Linux md5 because it's not found.]

image

The permission denied suggests #4104 but can't tell without a repro.

@Konfekt
Copy link
Author

Konfekt commented Nov 19, 2019

The exact version according to ver.exe is Microsoft Windows [Versione 10.0.18362.476]. It is an issue of zsh that occurs as well under Linux, but does not occur under bash. It is therefore independent of WSL.

immagine

@Konfekt Konfekt closed this as completed Nov 19, 2019
@Konfekt
Copy link
Author

Konfekt commented Nov 19, 2019

Apparently the same issue of ZSH is related at

https://stackoverflow.com/questions/23297832/weird-rails-error-permission-denied-bin-rails-for-old-rails-apps

and

https://stackoverflow.com/questions/51073014/zsh-permission-denied-gam

however, without any indication how to disable directories in $PATH becoming global executables.

@therealkenc
Copy link
Collaborator

Right, more in /dupe #3833 #3886 et al.

@ghost
Copy link

ghost commented Nov 19, 2019

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

@ghost ghost added the duplicate label Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants