GHCup fails to install on Windows if MSYS2 login shell is not bash-compatible
GHCup fails to install on Windows if the MSYS2 login shell of an existing MSYS2 installation is not bash-compatible.
Steps to reproduce:
- Install MSYS2 and use pacman to install the
fishshell - Set
fishas your login shell by changingset "LOGINSHELL=bash"toset "LOGINSHELL=fish"inmsys2_shell.cmd - Install GHCup with the PowerShell script
The installer starts mintty but it quits almost immediately and does not install it.
Solution: execute the commands by explicitly calling bash or sh.
Also, I'd prefer if the installer used msys2_shell.cmd -defterm -no-start so I can actually read any error messages instead of mintty quitting on me.
Edited by stevenwdv