Skip to content

windows: bash.exe path

Michał edited this page Sep 15, 2018 · 4 revisions

Path for bash process in Windows 10 WSL (nodejs code):

process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432') 
  ? "C:\\Windows\\sysnative\\bash.exe" 
  : "C:\\Windows\\System32\\bash.exe";

When using shell (cmd or powershell), simple bash call seems to do the trick, no need to use full path.

bash.exe is deprecated, aiming to support wsl.exe in next releases

Clone this wiki locally