Bash tool returns exit code 127 on every command in 2.1.147

Resolved 💬 10 comments Opened May 21, 2026 by kelnei Closed May 22, 2026

Summary

In Claude Code 2.1.147, every Bash tool invocation fails with exit code 127, including shell builtins. This makes the Bash tool completely unusable.

Repro

Any Bash tool call fails, e.g.:

  • echo "hello" → exit 127
  • pwd && whoami → exit 127
  • /bin/pwd (absolute path to a real binary) → exit 127

Exit 127 normally means "command not found," but it's firing even for builtins and absolute paths to existing binaries, so it looks like the issue is upstream of the user's shell (the tool wrapper itself, not .bashrc/.zshrc).

Environment

  • Claude Code version: 2.1.147
  • OS: Linux 6.18.7-76061807-generic (Pop!_OS / Ubuntu-family)
  • Shell: bash

Related

  • In-app feedback ID: 47de7b0a-a686-4957-aadc-83f44758787d

View original on GitHub ↗

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