[BUG] Bash commands aren't executed in `bash`
Resolved 💬 3 comments Opened Dec 19, 2025 by brodyhoskins Closed Feb 14, 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 claims to execute commands in bash even though they're executed in zsh.
What Should Happen?
Claude Code should _actually_ execute commands in bash or show that it's using zsh.
Error Messages/Logs
Steps to Reproduce
- Create a
zshalias such asalias greeting=echo 'hello'. - Execute
claudefromzsh. - Ask Claude Code to execute the alias: note that it'll show the
zshalias from the "Bash" mode.
This was already reported in the issues below but a bot marked both as duplicates:
- #2444
- #2902
Please don't mark this issue as a duplicate unless one of those actually becomes addressed.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.74 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗