[BUG] All attempts to run shell commands result in exit code 5 (Windows Server 2025)

Resolved 💬 4 comments Opened Feb 18, 2026 by wwinogrodzki Closed Mar 18, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

▐▛███▜▌ Claude Code v2.1.45
▝▜█████▛▘ Opus 4.6 · Claude Max
▘▘ ▝▝ C:\dev\mysuite\Fact9\src

❯ A ver si ahora puede hacer git status ?

● Bash(cd /c/dev/mysuite/Fact9/src && git status)
⎿  Error: Exit code 5

● Bash(git -C /c/dev/mysuite/Fact9/src status)
⎿  Error: Exit code 5

● Bash(git -C /c/dev/mysuite/Fact9/src status 2>&1)
⎿  Error: Exit code 5

● Bash(git status 2>&1; echo "EXIT: $?")
⎿  Error: Exit code 5

● Bash(pwd)
⎿  Error: Exit code 5

● Bash(echo "hello")
⎿  Error: Exit code 5

● Parece que el shell de Bash no está respondiendo correctamente — todos los comandos fallan con exit code 5, incluso un
simple echo. Esto sugiere un problema con el entorno de ejecución del shell, no con git en sí.

What Should Happen?

Claude should execute "git status"

Error Messages/Logs

▐▛███▜▌   Claude Code v2.1.45
▝▜█████▛▘  Opus 4.6 · Claude Max
  ▘▘ ▝▝    C:\dev\mysuite\Fact9\src

❯ A ver si ahora puede hacer git status ?

● Bash(cd /c/dev/mysuite/Fact9/src && git status)
  ⎿  Error: Exit code 5

● Bash(git -C /c/dev/mysuite/Fact9/src status)
  ⎿  Error: Exit code 5

● Bash(git -C /c/dev/mysuite/Fact9/src status 2>&1)
  ⎿  Error: Exit code 5

● Bash(git status 2>&1; echo "EXIT: $?")
  ⎿  Error: Exit code 5

● Bash(pwd)
  ⎿  Error: Exit code 5

● Bash(echo "hello")
  ⎿  Error: Exit code 5

● Parece que el shell de Bash no está respondiendo correctamente — todos los comandos fallan con exit code 5, incluso un
   simple echo. Esto sugiere un problema con el entorno de ejecución del shell, no con git en sí.

Steps to Reproduce

▐▛███▜▌ Claude Code v2.1.45
▝▜█████▛▘ Opus 4.6 · Claude Max
▘▘ ▝▝ C:\dev\mysuite\Fact9\src

❯ A ver si ahora puede hacer git status ?

● Bash(cd /c/dev/mysuite/Fact9/src && git status)
⎿  Error: Exit code 5

● Bash(git -C /c/dev/mysuite/Fact9/src status)
⎿  Error: Exit code 5

● Bash(git -C /c/dev/mysuite/Fact9/src status 2>&1)
⎿  Error: Exit code 5

● Bash(git status 2>&1; echo "EXIT: $?")
⎿  Error: Exit code 5

● Bash(pwd)
⎿  Error: Exit code 5

● Bash(echo "hello")
⎿  Error: Exit code 5

● Parece que el shell de Bash no está respondiendo correctamente — todos los comandos fallan con exit code 5, incluso un
simple echo. Esto sugiere un problema con el entorno de ejecución del shell, no con git en sí.

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

Claude Code v2.1.45

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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