[Bug] PowerShell commands executed through bash instead of PowerShell

Resolved 💬 4 comments Opened May 5, 2026 by lalku-tri Closed Jun 19, 2026

Bug Description
Claude is using bash to run PowerShell command and that will fail. When using PowerShell commands, it should not use bash

Environment Info

  • Platform: win32
  • Terminal: windows-terminal
  • Version: 2.1.128
  • Feedback ID: 66d0efa4-667e-401b-9c9e-ac530fe2ee1a

Errors

[]

Below is the command that Claude asked permission to run. That whole command is PowerShell and not bash, so it should pick the correct shell based on the commands that it decided to run.

 Bash(ls "D:\Repo\tais\global-mono-repo-2\commercialization-service" -Force -Recurse -Depth 2 | Where-Object { $_.Name -match "\.yml$" })

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗