I had a command:
"D:\Program Files\Git\bin\bash.exe" --login -c "git log -2"
but when I exec the such shell script, it print the result and quick exit.
I search bash refrence:
https://www.gnu.org/software/bash/manual/bash.html#Invoking-Bash
-c
Read and execute commands from the first non-option argument command_string, then exit.
I do not want exit. I want the command can pring log and hold on, so I can see it.
So what should I do?