I'm trying to learn bash. I've noticed that I can use commands on the path like git
, java
, npm
, node
, nuget
, paket
etc
However, some require me to type in the exe extension for example msbuild.exe
since msbuild
results in the following bash: msbuild: command not found
but msbuild.exe
works as expected.
Why does some command require the extension and others do not?
I'm used to cmd
where I don't need to specify the ext, is there anything I can do so that I don't need to use the extension?
Asked
Active
Viewed 84 times
0

Cœur
- 37,241
- 25
- 195
- 267

Mark Broadhurst
- 2,675
- 23
- 45
-
win-bash was last updated in 2006... (since that is the tag, I'm assuming you are not talking about WSL bash) – Gert van den Berg Jun 25 '18 at 09:39
-
@GertvandenBerg Yes sorry for the confusion. – Mark Broadhurst Jun 26 '18 at 09:50
1 Answers
0
You may refer to this question to find answers : `msbuild` command not found, but `msbuild.exe` works fine
In short : msbuild is a directory and an executable name, so your have to provide '.exe' extension to specify it's the executabl you want to run.

Wykiki
- 88
- 8