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:
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
Post a Comment