I am using the portable version of Git for Windows, but when I use git-bash.exe to run a single command, it looks like it does not work. Can you help me find out where is the problem?
I have a PowerShell script to call below command. But looks like it does not work. I am not able to let the new cmd window to pause to see the error log:
cmd /c "d:\git\git-bash.exe dos2unix d:\test\my-script.sh"
But If double click and run bash-exe.sh, then in the git-bash.exe window type
dos2unix d:\test\my-script.sh
then it works.
cmd /c "d:\git\git-bash.exe -c dos2unix d:\test\my-script.sh"-ctoo. I don't know how you nest quotes in CMD; try doubling the inner ones? But also, thecmdwrapper seems useless here.bash -c "dos2unix filename"