[BUG] PowerShell commands executed through bash instead of PowerShell

Resolved 💬 2 comments Opened Jun 19, 2026 by lalku-tri Closed Jun 23, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

All the details are already in https://github.com/anthropics/claude-code/issues/56452

What Should Happen?

Use the right shell for the commands to use

Error Messages/Logs

Steps to Reproduce

Use Claude Code on a Windows machine, eventually it will try to run a PowerShell command using Bash

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.183

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

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