I'm trying to execute .sh scripts under Windows. I installed Git, which allowed me to execute .sh files. However, I can't seem to pass any parameters around without prefixing the execution with "sh":
My .sh file:
echo "Test" $1
if I execute it with:
> sh test.sh 123
I get
Test 123
However, if I just execute it as
> test.sh 123
I get
Test
I know it is possible to execute .sh scripts with parameters and without prefixing them with "sh", since through some combination of configurations I was able to do it on my old computer somehow. Any guesses as to how to accomplish this?