After I installed the Windows 10 Anniversary Update, I was eager to try the new Bash command prompt. But when launched from the start menu (Win+R -> bash.exe), the bash window closes automatically.


For some reason it wasn't opening. But while I was writing this question I was able to find the answer so I decided to share it here if someone else had the same issue.

I decided to just start a shell prompt and type bash in it. The error message was about the "legacy mode enabled". To change it:

  • right click on the cmd promt window.
  • In option tab, uncheck the "Use legacy console"
  • Apply the changes and restart cmd.exe
  • type bash.

Installation will starts.

Enjoy!


Had the same issue as above, solution worked, but also need to have developer mode enabled, go to settings>update and security, go to developers, and check developer mode checkbox. May require a restart after windows downloads and installs the package. Then run cmd again and execute bash, as per steps above, bash.exe will download and install.