If you invoke where bash
in the command prompt, you will find that the Cygwin /usr/bin
or similar was found in your PATH. In fact, where
might even find two bash
es, one from Cygwin and another from Bash for Windows.
The fastest, simplest way to resolve this problem is to remove Cygwin from your PATH environment variable. With your command prompt still open, run systempropertiesadvanced
, click on Environment Variables...
on the bottom right, find the Path
entry in the System variables list, click Edit, and remove the part that includes Cygwin.
If this still seems too complicated for you, use a program like Rapid Environment Editor that makes this a painless, hard-to-screw-up process.
Also, don't forget to actually install Bash for Windows as a Windows feature (thanks Ramhound).
1Have you installed the feature? It's not installed by default. – Ramhound – 2016-08-03T19:09:53.317