claude-code - 💡(How to fix) Fix [BUG] Shell: bash (use Unix shell syntax, not Windows) 这个程序内置的提示存在歧义会导致理解成错误的含义 [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#58890Fetched 2026-05-14 03:36:51
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • 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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Shell: bash (use Unix shell syntax, not Windows) 这个程序内置的提示存在歧义会导致理解成错误的含义 [1 participants]