Why does running a .sh script from Visual Studio open the file instead of running it?

Answer #1 100 %

I figured out what was going on.

In windows there are default file associations. Mine was set up to run Visual Studio Code for the .sh file extension. Also, windows does not know how to handle .sh files by default. There were likely many potential fixes for this however the one that worked was for me to re-associate the .sh file extension to open with Git Bash which I happened to also have installed on this machine.

Thanks all who tried to help.

You’ll also like:

© 2022 CodeForDev.com -