batch file - Cant run shell script using Git Bash interface on Windows10 -


following this post wasn't able run shell trough git bash. batch file :

%comspec% /c ""c:\program files\git\git-bash.exe" --login -i -- c:\users\rmrd001\documents\git\scripts\first\test.sh" pause 

this shell script:

echo hello, world! 

and when batch run:

enter image description here

i can see instantaneous appearance of bash program, can't catch text it. double-triple-checked paths, correct. ran script trough git bash, worked (the message appeared).

any ideas?

i have seen different syntax before.

i see message with:

start "" git-bash.exe -i -l -c "/c/path/to/script.sh" 

with script.sh including a pause:

echo hello. world! read -n1 -r -p "press key continue..." key 

the op hairi report in comments making work with:

start /b cmd /c "c:/program files/git/git-bash.exe" /c/path/to/script.sh 

Comments

Popular posts from this blog

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -