[BUG] Shell: bash (use Unix shell syntax, not Windows) 这个程序内置的提示存在歧义会导致理解成错误的含义

Resolved 💬 1 comment Opened May 14, 2026 by mozhuanzuojing Closed Jun 12, 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?

这句话会被理解成 use Unix shell syntax, reject Windows !

正确的描述应该是 use Unix shell syntax, if not Windows 。 加入 if ,作用:连词(引导条件从句)。消除歧义。

我是在windows 系统工作 希望默认 pwsh ,但是 这个系统内置的提示词优先级最高,覆盖了我的提示,然后还理解错误,导致一直使用了 Git Bash(/usr/bin/bash)。

What Should Happen?

如果在 windows 上 优先使用 pwsh,而非 Git Bash。

Error Messages/Logs

Steps to Reproduce

1、settings.json add "defaultShell": "powershell"。
2、open claude in windows terminal
3、询问当前运行环境是什么?

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

2.1.140

Claude Code Version

2.1.140

Platform

Other

Operating System

Windows

Terminal/Shell

Terminal.app (macOS)

Additional Information

model 我使用 deepseek-v4-flash effort = high

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗