Why show the directory in explorer command does not work in git bash?
When I type simply
start
at the MINGW64 Cygwin prompt on Windows, it displays:
/usr/bin/start: line 8: cmd: command not found
Why show the directory in explorer command does not work in git bash?
When I type simply
start
at the MINGW64 Cygwin prompt on Windows, it displays:
/usr/bin/start: line 8: cmd: command not found
I had a similar problem because my path had %SystemRoot%\system32 included. It turns out that the env variable %SystemRoot% is not statically defined, but automatically included in the environment when starting cmd.exe or power shell. Since MINGW64's bash is neither, it just saw %SystemRoot%/system32 and could not traverse that to find cmd.exe.
Changing path to use C:\Windows\System32 cured this.
The git installer adds C:\Program Files\Git\cmd to Window's PATH environment variable.
In some PC configurations, this may not be sufficient for all git execution commands to run. For example, I faced the situation where git fetch executed fine, but git help fetch produced the error /usr/bin/start: line 8: cmd not found
Following #mklement0's advice, after adding C\Windows\System32 to Window's PATH environment variable, then all git commands executed for me without error.
Try appending ;C\Windows\System32 to your Window's PATH environment variable as follows:
; add the following to the end of the 'Variable value' text: ;C:\Windows\System32