[Bug] Bash commands fail on Windows with apostrophe in home directory path

Status Closed — duplicate
Reported on v2.1.45
Maintainer reply None cached
Activity 3 comments · opened Feb 20, 2026 · closed Feb 24, 2026

Bug Description
Every bash command fails on windows because my home directory has an apostrophe in it. Claude Code 2.1.45 presumably handled escaping it properly.

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.1.49
  • Feedback ID: 4e97fbed-5454-4a43-a7ee-d8be6e518d5d

Errors

[{"error":"Error: ENOENT: no such file or directory, open 'C:\\Users\\[REDACTED]\\.claude\\remote-settings.json'\n
  at openSync (unknown)\n    at readSync (B:/~BUN/root/claude.exe:12:1441)\n    at ZP
  (B:/~BUN/root/claude.exe:6084:113)\n    at bX (B:/~BUN/root/claude.exe:6086:226)\n    at pZA
  (B:/~BUN/root/claude.exe:2077:49684)\n    at dT$ (B:/~BUN/root/claude.exe:2077:49847)\n    at $KE
  (B:/~BUN/root/claude.exe:6071:1234)\n    at T9H (B:/~BUN/root/claude.exe:6071:2112)\n    at Nf
  (B:/~BUN/root/claude.exe:6071:2039)\n    at qHI
  (B:/~BUN/root/claude.exe:6102:5361)","timestamp":"2026-02-20T16:03:49.724Z"},{"error":"Error: ENOENT: no such file or
  directory, open 'C:\\Users\\[REDACTED]\\.claude\\remote-settings.json'\n    at openSync (unknown)\n    at readSync
  (B:/~BUN/root/claude.exe:12:1441)\n    at ZP (B:/~BUN/root/claude.exe:6084:113)\n    at bX
  (B:/~BUN/root/claude.exe:6086:226)\n    at pZA (B:/~BUN/root/claude.exe:2077:49684)\n    at iZA
  (B:/~BUN/root/claude.exe:2077:52952)\n    at YAf (B:/~BUN/root/claude.exe:2077:53857)\n    at <anonymous>
  (B:/~BUN/root/claude.exe:11372:510)\n    at <anonymous> (B:/~BUN/root/claude.exe:6118:1974)\n    at forEach
  (native:1:11)","timestamp":"2026-02-20T16:03:49.802Z"},{"error":"Error: ENOENT: no such file or directory, open
  'C:\\Users\\[REDACTED]\\.claude\\remote-settings.json'\n    at openSync (unknown)\n    at readSync
  (B:/~BUN/root/claude.exe:12:1441)\n    at ZP (B:/~BUN/root/claude.exe:6084:113)\n    at bX
  (B:/~BUN/root/claude.exe:6086:226)\n    at pZA (B:/~BUN/root/claude.exe:2077:49684)\n    at dT$
  (B:/~BUN/root/claude.exe:2077:49847)\n    at DD (B:/~BUN/root/claude.exe:6070:6721)\n    at ExH
  (B:/~BUN/root/claude.exe:282:20610)\n    at __$ (B:/~BUN/root/claude.exe:282:21105)\n    at utf
  (B:/~BUN/root/claude.exe:5727:11993)","timestamp":"2026-02-20T16:03:49.804Z"},{"error":"Error: ENOENT: no such file or
   directory, open 'C:\\Users\\[REDACTED]\\.claude\\remote-settings.json'\n    at openSync (unknown)\n    at readSync
  (B:/~BUN/root/claude.exe:12:1441)\n    at ZP (B:/~BUN/root/claude.exe:6084:113)\n    at bX
  (B:/~BUN/root/claude.exe:6086:226)\n    at pZA (B:/~BUN/root/claude.exe:2077:49684)\n    at dT$
  (B:/~BUN/root/claude.exe:2077:49847)\n    at DD (B:/~BUN/root/claude.exe:6070:6721)\n    at IxH
  (B:/~BUN/root/claude.exe:282:21215)\n    at __$ (B:/~BUN/root/claude.exe:282:21177)\n    at utf
  (B:/~BUN/root/claude.exe:5727:11993)","timestamp":"2026-02-20T16:03:49.806Z"},{"error":"Error: ENOENT: no such file or
   directory, open 'C:\\Users\\[REDACTED]\\.claude\\remote-settings.json'\n    at openSync (unknown)\n    at readSync
  (B:/~BUN/root/claude.exe:12:1441)\n    at ZP (B:/~BUN/root/claude.exe:6084:113)\n    at bX
  (B:/~BUN/root/claude.exe:6086:226)\n    at pZA (B:/~BUN/root/claude.exe:2077:49684)\n    at dT$
  (B:/~BUN/root/claude.exe:2077:49847)\n    at DD (B:/~BUN/root/claude.exe:6070:6721)\n    at zt
  (B:/~BUN/root/claude.exe:6071:2322)\n    at t_ (B:/~BUN/root/claude.exe:6088:3328)\n    at <anonymous>
  (B:/~BUN/root/claude.exe:6082:11411)","timestamp":"2026-02-20T16:03:49.810Z"},{"error":"Error: ENOENT: no such file or
   directory, open 'C:\\Users\\[REDACTED]\\.claude\\remote-settings.json'\n    at openSync (unknown)\n    at readSync
  (B:/~BUN/root/claude.exe:12:1441)\n    at ZP (B:/~BUN/root/claude.exe:6084:113)\n    at bX
  (B:/~BUN/root/claude.exe:6086:226)\n    at pZA (B:/~BUN/root/claude.exe:2077:49684)\n    at dT$
  (B:/~BUN/root/claude.exe:2077:49847)\n    at DD (B:/~BUN/root/claude.exe:6070:6721)\n    at ypA
  (B:/~BUN/root/claude.exe:6040:36337)\n    at vpA (B:/~BUN/root/claude.exe:6040:37070)\n    at NzE
  (B:/~BUN/root/claude.exe:10984:4348)\n    at async <anonymous>
  (B:/~BUN/root/claude.exe:11397:2312)","timestamp":"2026-02-20T16:03:49.823Z"},{"error":"Error: ENOENT: no such file or
   directory, open 'C:\\Users\\[REDACTED]\\.claude\\remote-settings.json'\n    at openSync (unknown)\n    at readSync
  (B:/~BUN/root/claude.exe:12:1441)\n    at ZP (B:/~BUN/root/claude.exe:6084:113)\n    at bX
  (B:/~BUN/root/claude.exe:6086:226)\n    at pZA (B:/~BUN/root/claude.exe:2077:49684)\n    at dT$
  (B:/~BUN/root/claude.exe:2077:49847)\n    at DD (B:/~BUN/root/claude.exe:6070:6721)\n    at Q31
  (B:/~BUN/root/claude.exe:1411:4189)\n    at xyH (B:/~BUN/root/claude.exe:1411:6…

Note: Content was truncated.

View original on GitHub ↗

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