[BUG] Windows: File and command tools fail due to incorrect bash.exe path
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?
Description:
On Windows with Git for Windows installed, all file modification and command execution tools (Read, Write, Edit, Bash) fail with the following error:
Command failed: cygpath -u 'C:\Users\jsparrow\AppData\Local\Temp'
Skipping command-line '"C:\Users\jsparrow\AppData\Local\Programs\Git\bin\..\usr\bin\bash.exe"'
('C:\Users\jsparrow\AppData\Local\Programs\Git\bin\..\usr\bin\bash.exe' not found)
Need a valid command-line; Edit the string resources accordingly
Root Cause:
Claude Code is looking for bash.exe at:
C:\Users\jsparrow\AppData\Local\Programs\Git\usr\bin\bash.exe (doesn't exist)
But it's actually installed at:
C:\Users\jsparrow\AppData\Local\Programs\Git\bin\bash.exe
Impact:
✅ Glob tool: Works
✅ Grep tool: Works
❌ Read tool: Fails
❌ Write tool: Fails
❌ Edit tool: Fails
❌ Bash tool: Fails
This makes Claude Code nearly unusable for file operations and command execution on Windows.
Environment:
OS: Windows
Git installation: Git for Windows at C:\Users\jsparrow\AppData\Local\Programs\Git
Claude Code running in VSCode extension
What Should Happen?
Expected Behavior:
Claude Code should correctly locate bash.exe from the Git for Windows installation.
Error Messages/Logs
Steps to Reproduce
Install Claude.
Try to use it.
Claude Model
Not sure / Multiple models
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.30 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗