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

which not reporting correct location #183

Open
twhitbeck opened this issue May 7, 2015 · 1 comment
Open

which not reporting correct location #183

twhitbeck opened this issue May 7, 2015 · 1 comment

Comments

@twhitbeck
Copy link

I created a file ls.bat and placed it in a directory on my path.

which ls reports

C:\Program Files (x86)\Gow\bin\ls.EXE

where ls reports

C:\Windows\System32\ls.bat
C:\Program Files (x86)\Gow\bin\ls.exe

If I execute ls, C:\Windows\System32\ls.bat is actually what is getting executed.

@gs11
Copy link

gs11 commented May 7, 2015

This is actually the expected behaviour, works the same way on GNU/Linux.
I think it grabs the first match on the path.

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

No branches or pull requests

2 participants