[BUG] /usr/bin/bash: -c: line 1: unexpected EOF while looking for matching `''
Resolved 💬 3 comments Opened Feb 20, 2026 by projectservan8n Closed Feb 24, 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?
Every bash command fails with:
/usr/bin/bash: -c: line 1: unexpected EOF while looking for matching ''`
Even echo "hello" fails. No commands execute at all.
Broken: 2.1.49
Working: 2.1.42
OS: Windows 11, also reproduced on macOS
Note: Windows machine has an apostrophe in the user path (C:\Users\USER'S) but Mac does not, so it's not path-related
What Should Happen?
Bash commands should execute normally. Even simple commands like echo "hello" fail.
Error Messages/Logs
/usr/bin/bash: -c: line 1: unexpected EOF while looking for matching `''
/usr/bin/bash: -c: line 1: unexpected EOF while looking for matching `''
Steps to Reproduce
- Install Claude Code 2.1.49
- Open any project in VS Code with Claude Code extension
- Ask Claude to run any bash command (e.g. "run echo hello")
- Every command fails with the matching `'' error
- Downgrading to 2.1.42 fixes it
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
2.1.42
Claude Code Version
2.1.49
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
Also reproduced on macOS. The bug was introduced somewhere between 2.1.42 and 2.1.49.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗