[Bug] Bash commands with ! prefix execute in wrong working directory on Windows CMD
Resolved 💬 3 comments Opened Jan 30, 2026 by a-canary Closed Feb 3, 2026
Bug Description
in windows cmd terminal, the ! bash commands are not executing in the cwd that claude was started from.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 2.1.23
- Feedback ID: 737098eb-19f4-45a0-b97e-72bec061036e
Errors
[{"error":"Error: ENOENT: no such file or directory, scandir 'C:\\ProgramData\\ClaudeCode\\.claude\\skills'\n at readdirSync (unknown)\n at <anonymous> (B:/~BUN/root/claude.exe:12:2063)\n at nX (B:/~BUN/root/claude.exe:11:35715)\n at readdirSync (B:/~BUN/root/claude.exe:12:2024)\n at K6$ (B:/~BUN/root/claude.exe:1802:380)\n at K6$ (B:/~BUN/root/claude.exe:1802:1350)\n at <anonymous> (B:/~BUN/root/claude.exe:1802:4670)\n at <anonymous> (B:/~BUN/root/claude.exe:1802:5401)\n at A (B:/~BUN/root/claude.exe:11:7259)\n at $SE (B:/~BUN/root/claude.exe:4812:4342)","timestamp":"2026-01-30T18:28:07.141Z"},{"error":"Error\n at oS (B:/~BUN/root/claude.exe:42:1144)\n at <anonymous> (B:/~BUN/root/claude.exe:47:10093)\n at emit (node:events:92:22)\n at endReadableNT (internal:streams/readable:861:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/claude.exe:49:2149)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-01-30T18:28:07.438Z"},{"error":"AbortError: The operation was aborted.\n at unknown\n at abortChildProcess (node:child_process:947:42)\n at onAbortListener2 (node:child_process:35:24)\n at abort (unknown)\n at <anonymous> (B:/~BUN/root/claude.exe:3019:209)","timestamp":"2026-01-30T18:28:10.645Z"},{"error":"RipgrepTimeoutError: Ripgrep search timed out after 20 seconds. The search may have matched files but did not complete in time. Try searching a more specific path or pattern.\n at I (B:/~BUN/root/claude.exe:74:189)\n at <anonymous> (B:/~BUN/root/claude.exe:74:403)\n at exitHandler (node:child_process:109:27)\n at errorHandler (node:child_process:118:16)\n at emitError (node:events:43:23)\n at abortChildProcess (node:child_process:947:17)\n at onAbortListener2 (node:child_process:35:24)\n at abort (unknown)\n at <anonymous> (B:/~BUN/root/claude.exe:3019:209)","timestamp":"2026-01-30T18:28:10.645Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗