Windows: Incorrect /dev/null Redirection Creates Null Files in Bash Commands

Resolved 💬 3 comments Opened Aug 19, 2025 by albertodimas Closed Aug 23, 2025

Bug Description
✅ Problema identificado: Claude Code crea archivos nul al ejecutar comandos bash en Windows debido a redirección
incorrecta de /dev/null

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 1.0.83
  • Feedback ID: 23179bb7-23f4-4239-95bb-e08cbe84139c

Errors

[{"error":"Error: Failed to copy executable from C:\\Users\\alber\\.local\\share\\claude\\versions\\1.0.84 to C:\\Users\\alber\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\alber\\.local\\bin\\claude.exe'\n    at ZKY (B:/~BUN/root/claude.exe:2846:18914)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18481)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18498)\n    at j9W (B:/~BUN/root/claude.exe:2846:16407)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-19T15:01:10.091Z"},{"error":"Error: Failed to copy executable from C:\\Users\\alber\\.local\\share\\claude\\versions\\1.0.84 to C:\\Users\\alber\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\alber\\.local\\bin\\claude.exe'\n    at ZKY (B:/~BUN/root/claude.exe:2846:18914)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18481)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18498)\n    at j9W (B:/~BUN/root/claude.exe:2846:16407)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-19T15:02:26.886Z"},{"error":"Error: Failed to copy executable from C:\\Users\\alber\\.local\\share\\claude\\versions\\1.0.84 to C:\\Users\\alber\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\alber\\.local\\bin\\claude.exe'\n    at ZKY (B:/~BUN/root/claude.exe:2846:18914)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18481)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18498)\n    at j9W (B:/~BUN/root/claude.exe:2846:16407)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-19T15:02:33.843Z"},{"error":"Error: Failed to copy executable from C:\\Users\\alber\\.local\\share\\claude\\versions\\1.0.84 to C:\\Users\\alber\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\alber\\.local\\bin\\claude.exe'\n    at ZKY (B:/~BUN/root/claude.exe:2846:18914)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18481)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18498)\n    at j9W (B:/~BUN/root/claude.exe:2846:16407)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-19T15:03:18.454Z"},{"error":"Error: Failed to copy executable from C:\\Users\\alber\\.local\\share\\claude\\versions\\1.0.84 to C:\\Users\\alber\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\alber\\.local\\bin\\claude.exe'\n    at ZKY (B:/~BUN/root/claude.exe:2846:18914)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18481)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18498)\n    at j9W (B:/~BUN/root/claude.exe:2846:16407)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-19T15:03:43.775Z"},{"error":"AbortError: The operation was aborted.\n    at unknown\n    at abortChildProcess (node:child_process:871:42)\n    at onAbortListener2 (node:child_process:35:24)\n    at abort (unknown)\n    at <anonymous> (B:/~BUN/root/claude.exe:567:80)","timestamp":"2025-08-19T15:08:13.013Z"},{"error":"Error: Failed to copy executable from C:\\Users\\alber\\.local\\share\\claude\\versions\\1.0.84 to C:\\Users\\alber\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\alber\\.local\\bin\\claude.exe'\n    at ZKY (B:/~BUN/root/claude.exe:2846:18914)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18481)\n    at <anonymous> (B:/~BUN/root/claude.exe:2846:18498)\n    at j9W (B:/~BUN/root/claude.exe:2846:16407)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-19T15:08:44.531Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"prompt is too long: 211330 tokens > 200000 maximum\"},\"request_id\":\"req_011CSHHEkvFDj6wFZym6LEw3\"}\n    at new tW (unknown:1:28)\n    at new wY (B:/~BUN/root/claude.exe:793:1964)\n    at new OW0 (unknown:1:28)\n    at generate (B:/~BUN/root/claude.exe:793:2421)\n    at makeRequest (B:/~BUN/root/claude.exe:810:5330)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-08-19T15:09:53.400Z"},{"error":"Error: Failed to copy executable from C:\\Users\\alber\\.local\\share\\claude\\versions\\1.0.84 to C:\\Users\\alber\\.local\\bin\\claude.exe: Error: EPERM: operation not permitted, unlink 'C:\\Users\\alber\\.local\\bin\\claude.exe'\n    at ZKY (B:/~BUN/root/c

Note: Error logs were truncated.

View original on GitHub ↗

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