Reputation: 11
I can't get the following to work:
c:\cygwin64\bin\bash -c /cygdrive/c/myscript.sh myargument
Specifically, myscript.sh is NOT getting "myargument" passed in as $1.
The script works exactly as I want it to if I hard-code "myargument" inside the script.
It's been 5 years since I have done any shell scripting and rust has accumulated!
Upvotes: 1
Views: 1201
Reputation:
The option -c is not used with scripts Try this instead:
c:\cygwin64\bin\bash /cygdrive/c/myscript.sh myargument
Upvotes: 2