claude-code - 💡(How to fix) Fix Bash tool returns exit code 127 on every command in 2.1.147

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

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.

Root Cause

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.

RAW_BUFFERClick to expand / collapse

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

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Bash tool returns exit code 127 on every command in 2.1.147