I associated .sh files with bash. So I can successfully execute bash scripts from within a Windows command prompt.
The problem is that I am unable to pass command line arguments to my bash scripts from the Winodws command line.
The command line arguments are processed fine if I first go to bash and then execute the scripts their.
So if myscr.sh is
echo Args $1, $2
Then
c:\> myscr.sh a1 a2
Args ,
but from bash:
$ ./myscr.sh a1 a2
Args a1, a2
Any suggestions?
$#and check the value? Also maybe you could trybash myscr.sh a1 a2on Windows and see what you getftypeassociation did not update the registry.