Claude Code 2.1.148: Critical Bash Tool Fix — Exit Code 127 Regression Resolved
Claude Code v2.1.148 is a targeted hotfix release that resolves a critical regression introduced in v2.1.147: the Bash tool was returning exit code 127 on every command for a subset of users. Exit code 127 in Unix signals "command not found," meaning the Bash tool appeared to be unable to execute any shell commands at all for affected users — effectively breaking the core coding workflow. The fix was released the same day the issue was reported, demonstrating Anthropic's rapid response to regressions that affect basic functionality.
Sources & Mentions
5 external resources covering this update
A Critical Regression, Fixed in Hours
Claude Code v2.1.148 is a single-fix release addressing a severe regression that shipped with v2.1.147: the Bash tool was returning exit code 127 on every executed command for some users.
What Exit Code 127 Means
In Unix/Linux/macOS environments, exit code 127 is a shell-level signal meaning "command not found." When Claude Code's Bash tool returns this code on every command — not just occasionally, but systematically — it means the tool's execution environment cannot locate the commands it's trying to run. In practice, this made Claude Code's most fundamental capability — running shell commands — non-functional for affected users. Tasks involving git, npm, python, build tools, and virtually any other CLI command would fail immediately with exit code 127.
Scope and Impact
The regression was introduced in v2.1.147 and affected a subset of users, not the entire user base. However, for those affected, the impact was total: the Bash tool was rendered unusable. Multiple bug reports appeared in the Claude Code GitHub issues tracker documenting the "command not found" behavior across different operating systems and configurations.
A Same-Day Fix
Anthropic released v2.1.148 the same day as the community surfaced the issue at scale, with the changelog entry explicitly noting it as a regression fix tied to v2.1.147. The rapid turnaround reflects the severity of the issue — a tool that can't run bash commands isn't a coding assistant.
Recommendation for Affected Users
Any user who updated to v2.1.147 and experienced systematic "exit code 127" errors from the Bash tool should update to v2.1.148 immediately. Claude Code's auto-updater (improved in v2.1.147) will handle this automatically for most installations.