Commit 24a4cb2
committed
fix(shell): resolve pwsh.exe/.cmd/.bat on PATH for Windows shell discovery
On Windows, PowerShell 7 installed via the Microsoft Store / App Execution
Alias ships as pwsh.exe. resolvePowerShellPath() step 3 called
resolveShellFromPath("pwsh"), which only probed a bare "pwsh" with no
extension. fs.accessSync therefore missed the real binary and discovery
fell through to Windows PowerShell 5.1.
Changes:
- Export resolveShellFromPath for external use
- Add .exe probing on Windows (win32 only) for pwsh discovery
- Add tests for resolveWindowsBashPath, resolveShellFromPath,
resolveShellFromWhich, resolvePowerShellPath1 parent 40d31f3 commit 24a4cb2
0 file changed
0 commit comments