问题
I download some repositories of DojoToolkit in GitHub that have .sh files, I know .sh extension are typically shell scripts written in Unix, but exist a way to run this in Windows?
回答1:
cygwin is probably the easiest way.
http://www.cygwin.com/
Alternatively if you're already using git-bash for github etc you can use it to run .sh scripts too.
回答2:
Porting unix stuff to windows is sometime possible (mostly thanks to cygwin, as pointed out by other answers) but except for simple stuff, you'll quickly enter into a compatibility hell, never knowing what goes wrong.
I recommend setting up a virtual machine running a simple ubuntu server.
That what I use daily. VMware server is free, ubuntu installs perfectly on it. Shell via ssh and file share via a samba server on the linux VM. File editor on windows.
Works perfectly, no more compatibility problems.
来源:https://stackoverflow.com/questions/7936861/how-to-run-sh-files-in-windows