I have installed cygwin on Windows 11. Now, when I open the Windows command line, I want the bash.exe
command to run the cygwin's bash command instead of bash linked with wsl (Windows subsystem for Linux). In other words, when I run bash.exe
I don't want to see the "Windows Subsystem for Linux has no installed distributions." message, but instead run bash from my cygwin installation.I have tried adding the cygwin's "bin" directory to the Windows PATH environment variable, but with no effect.
Edit
Originally, I wrote that adding the cygwin's "bin" folder path to the Windows PATH environment variable had no effect, and while it is true for running bash-exe
from the Windows cmd shell, it has meanwhile actually solved the problem of running bash.exe
from the Python script, which in reality was my problem. I thought that running the command behaved equally no matter whether run from the cmd shell or Python script, but obviously there is a difference.