How to run a program in git-bash.exe in a new window
Matthew Martinez
When I run the program /c/Users/PetrKrysl/AppData/Local/Julia-1.0.1/bin/julia.exe in an open git-bash.exe window, it runs fine.
However, I'm not able to start a new window with
git-bash.exe /c/Users/PetrKrysl/AppData/Local/Julia-1.0.1/bin/julia.exeA window opens, but doesn't stay open. There is some sort of error message, but the window vanishes too quickly for me to read what happened.
71 Answer
If git-bash.exe is compatible with bash you will need:
git-bash.exe -c /c/Users/PetrKrysl/AppData/Local/Julia-1.0.1/bin/julia.exeOmitting the -c causes the file parameter to be interpreted as a text file containing bash commands, and a binary file is not allowed, as you observed.
The same error is generated if you try to execute a binary program with the source or . command from a running bash.