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.