I am creating a context menu handler to open Bash via right click.
My command works with all git bash.exe
files:
C:\Program Files\Git\git-bash.exe
C:\Program Files\Git\bin\bash.exe
C:\Program Files\Git\usr\bin\bash.exe
Each opens a bash shell and seems fine.
One difference I noticed is that git-bash.exe
looks a little different. The color settings are tweaked. When I first installed git I changed the color palette, but it didn't seem to carry over to the other bash executables.
I think this is because it's running mintty / or as one user explained, git-bash.exe
is actually a windows app.
There is a question already on this site that supplies a little more information:
Git for Windows: Difference between Git\bin\bash.exe and Git\usr\bin\bash.exe
%programfiles%\git\bin\bash.exe
->%programfiles%\git\usr\bin\bash.exe + some automatically injected arguments
= inline [ main stdin/stdout ] bash shell provided by git layered on top of windows cmd.exe command prompt environment
%programfiles%\git\git-bash.exe
= windows app [ winmain ] bash shell provided by git layered on top of windows cmd.exe command prompt environment
This sheds a bit more light on the topic, but I'm still a little confused by this reply.
- Is he saying that
%programfiles%\git\bin\bash.exe
is the same thing as%programfiles%\git\usr\bin\bash.exe
? - Do both of these binaries have these "automatically injected arguments"?
- What are the arguments he's talking about?
And ultimately, the million dollar question:
What exact binary of git bash should I be calling for general use?