claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

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

Open shukebeta opened this issue 6 months ago • 0 comments

Environment

  • Platform (select one):
    • [ ] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [ ] Other:
  • 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

shukebeta avatar Jun 26 '25 02:06 shukebeta