Open twhitbeck opened 9 years ago
I created a file ls.bat and placed it in a directory on my path.
ls.bat
which ls reports
which ls
C:\Program Files (x86)\Gow\bin\ls.EXE
where ls reports
where ls
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.
ls
C:\Windows\System32\ls.bat
This is actually the expected behaviour, works the same way on GNU/Linux. I think it grabs the first match on the path.
I created a file
ls.bat
and placed it in a directory on my path.which ls
reportswhere ls
reportsIf I execute
ls
,C:\Windows\System32\ls.bat
is actually what is getting executed.