[BUG] Git Bash path conversion issue - Windows paths not properly converted

Resolved 💬 4 comments Opened Jun 26, 2025 by shukebeta Closed Jul 15, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [ ] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.35
  • Operating System: Windows server 2022 without WSL
  • Terminal: Git bash

Bug Description

Claude code cannot use Bash method:

Bash(pwd)
  ⎿  Error: /usr/bin/bash: line 1: C:UsersDavid.WeiAppDataLocalTemp/claude-shell-snapshot-6ea5: No such file or directory

Steps to Reproduce

install claude on a gitbash env. see <https://blog.shukebeta.com/2025/06/25/running-claude-code-on-windows-without-wsl/> to know how to install it.
All other helpers functions well, but the Bash one always fail due to a windows path issue:
Snapshot file was successfully created but could be referred correctly, as claude code wrongly uses a windows style path to access the snapshot file.

Expected Behavior

  • Bash commands should work in Git Bash environment
  • Paths should be properly converted to Unix-style format properly before access them

Actual Behavior

Bash(pwd)
  ⎿  Error: /usr/bin/bash: line 1: C:UsersDavid.WeiAppDataLocalTemp/claude-shell-snapshot-6ea5: No such file or directory

Additional Context

N/A

View original on GitHub ↗

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