I'm not a pro Windows user but if you run your script under WSL bash, the rules are the same. POSIX doesn't care about the file extension.

Windows however, doesn't seem to have the concept of sheband. It merelly decides how to run the file based on its extension (which should be *.cmd instead of *.sh).

For more information, have a look at this SO question. Hope that helps.

--

--

Sr. Staff Engineer @volvocars, Knowledge Worker, MSc Systems Engineering, Tech Lead, Web Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alex Ewerlöf

Alex Ewerlöf

Sr. Staff Engineer @volvocars, Knowledge Worker, MSc Systems Engineering, Tech Lead, Web Developer

More from Medium

Tips and Tricks for Remote Teams

How Samsara Engineers are Building the Future of Physical Operations

Backend Engineer

Supercharge Your Memory | Part 1 — The Linking System