Reputation: 31345
What I've tried:
bash scripts/shell/test.sh
sh scripts/shell/test.sh
These were the results:
The term 'bash' is not recognized...
The term 'sh' is not recognized...
Upvotes: 0
Views: 6026
Reputation: 1
i read you're suppose to use chmod +x scriptname.sh before using the bash command
Upvotes: -1
Reputation: 988
This may sound daft, but if you are in a Powershell shell how will that shell know where to find the bash or sh interpreter? Is it already defined in the environment?
In my opinion you're going to have to tell the Powershell terminal where it should find the bash/sh interpreter, i.e. call bash it with the full pathname
Upvotes: 1