How to run bash script in the current directory from cmd-file by using Cygwin?
It doesn't work - my file script.cmd
contains: https://stackoverflow.com/a/17204645/1558037
c:\cygwin64\bin\bash -l -c '%CD%/my_script.sh'
Output
E:\mydir>c:\cygwin64\bin\bash -l -c 'E:\mydir/my_script.sh'
/usr/bin/bash: E:mydir/my_script.sh: No such file or directory
Answer:
I can successfully use such commands:
c:\cygwin64\bin\bash -l -c "cd %CD:\=/%/; %CD:\=/%/my_script.sh"
c:\cygwin64\bin\bash -l -c "cd %CD:\=/%/; echo $PWD"