MSYS$ cat build.sh #!/bin/bash echo "hello, world" MSYS$ ./build.sh : not found: 2: build.sh
Polite projects will have .gitattributes specifying that .sh or .bash or bin/* or whatever are to always checkout with eol=lf <https://git-scm.com/docs/gitattributes#_eol>
As best I can tell, .ps1 does tolerate Unix lf but I'd bet good money that .bat and .cmd definitely do not