Sure now you have WSL and countless other options but git bash is one click away and works surprisingly well.
Sure now you have WSL and countless other options but git bash is one click away and works surprisingly well.
Bouncing between my personal computers and my Windows work computer, what they've done to make git so slow... it makes me sad. On a brand new developer workstation, the git-prompt invocation in PS1 takes over a second to complete.
Developers who never used git before don't like it and I understand why. It's like a scene from Harrison Bergeron, like Git Bash has heavy objects strapped to it to make it at least as slow as everything else.
https://github.com/Microsoft/WSL/issues/873#issuecomment-425...
This also made any programs I was running in it - like vim - useable too.
Cygwin has a more complex setup and not great compatibility with windows executables, IIRC.
There is still msys, if you want more windows. I think git bash mostly is only a packaged msys distribution, isn't it??
MSYS2 is the better option, and is not "MSYS version 2", it's an independent rewrite.
> git bash mostly is only a packaged msys distribution, isn't it?
It's in parts based on MSYS2, but doesn't give you a "full install" (or whatever is the best way to phrase it).
And that's how/why MSYS2 is a nice alternative to Cygwin, especially its environments that use UCRT instead of MSVCRT when considering "compatibility" from the perspective of building and shipping software that doesn't require the user to first install a special environment/runtime. UCRT ships by default on Windows 10.
As a shell environment I like cygwin. With posix compatibility I can compile nearly everything (that does not use libuv).
I do not get the narrative of complicated setup for this use case. Download installer and click next a few times: does not seem to be so difficult. The cygwin package installer IMHO is a bit easier to use than pacman.
But looking back and comparing it to Git Bash experience of today, with a simple installer to run, Git Bash wins in convenience. It does suck in other areas though such as trying to start a Python interpreter session (I fallback to PowerShell for that)
Cygwin has probably grown a lot better since but I don't see a reason to try it, personally.
You could run your Windows Python but the paths will be wrong (C:\ instead of /c/), etc.
Reference: http://willi.am/blog/2016/08/08/docker-for-windows-interacti...
Not sure about cygwin, but I thought git bash was based on msys2?
Git bash is based on some ancient cygwin version. You can see that e.g. the «cygpath» utility is still there. MinGW/Msys forked from cygwin due to some techno-political disagreement that I can’t be bothered to learn more about.
cygwin is so slow it's basically unusable for most tasks except the simplest ones.
especially if you run anything with threads.