3 ms·
> Bash scripts run in Powershell ...if you install Bash [1] so PowerShell can execute it. In much the same way that batch files can call Bash, or Windows Explo
by taspeotis 12y ago
> Bash scripts run in Powershell
...if you install Bash [1] so PowerShell can execute it. In much the same way that batch files can call Bash, or Windows Explorer can if you double click on it.
> A caveat to the accepted answer is that sh is not included in vanilla Powershell. I had to install Git, which optionally adds some UNIX tools to the PATH in Powershell, sh.exe being one of them.
> Note: sh.exe or another *nix shell must be associated with the .sh extension.
[1] http://stackoverflow.com/questions/1098786/run-bash-script-from-windows-powershell http://stackoverflow.com/questions/1098786/run-bash-script-f...