-
Notifications
You must be signed in to change notification settings - Fork 832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
point bash.exe
to a different bash other than WSL2 bash
#11472
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging |
/question |
Diagnostic information
|
Modify Windows |
Indeed updating %PATH% would be the best way to solve this (make sure that the bash.exe you want is first in %PATH%). Closing since this is not something that WSL can do. |
Thanks for the help guys. Yep, moving the MSYS Env path to the top works! |
Normally, when I run
bash.exe
in PowerShell, it will open WSL by default.So, I have MSYS2(C:\msys64\usr\bin) installed for building TensorFlow. While building, it executes
bash.exe
to run a certain snippet of script, but it is being executed by thebash.exe
that points to the WSL2, which is causing my build to fail. I would like to switch to thebash.exe
from MSYS2 as default.I'm able to solve this for now by uninstalling WSL entirely. But I do not think this solution is efficient and I would lose lots of data. Is there a way to disable the
bash.exe
in WSL or change precedence of whichbash.exe
to run?The text was updated successfully, but these errors were encountered: