Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

How to run a program in git-bash.exe in a new window

Writer 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.exe

A 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.

7

1 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.exe

Omitting 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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy