Claude Code Fixes Bash Commands Failing in zsh at Words Starting With =
Claude CodeView original changelog
Claude Code 2.1.328 fixes Bash commands in zsh stopping with a "not found" error at a word that starts with =, such as echo ==== or [ a == b ]. =cmd no longer expands to a command's path.
Key Takeaways
- zsh users no longer see "not found" on
=words. echo ====and[ a == b ]now work.=cmdexpansion is switched off for Bash commands.- Banners and separators in scripts are safe.
- It affects macOS default shells in particular.
- No configuration is needed.
The Bug
In zsh, a word beginning with = expands to the path of a command. That made harmless commands such as echo ==== or [ a == b ] fail with a "not found" error when Claude ran them in Bash.
The Fix
Claude Code 2.1.328 stops this expansion, so =cmd no longer turns into a command's path. Common separators and comparisons now run as written.