[BUG] syntax error near unexpected token '|' in all Bash operations
Resolved 💬 3 comments Opened Apr 16, 2025 by siovene Closed Apr 18, 2025
Environment
- Platform (select one):
- [X] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 0.2.70
- Operating System: MacOS 15.2
- Terminal: Terminal App
Bug Description
Lately, all Bash operations fail with this error:
⏺ Bash(any bash operation here, e.g. ls, cat, sed...)…
⎿ /var/folders/q1/7vbmgf455wldzb2svh1q5z440000gn/T/claude-shell-snapshot-9ff2: line 189: syntax error near
unexpected token |' | sed 's/\\\[\\033/
/var/folders/q1/7vbmgf455wldzb2svh1q5z440000gn/T/claude-shell-snapshot-9ff2: line 189:
| sed 's/\\\]//g''
Steps to Reproduce
Make any request to Claude that will cause it to use the Bash process.
Additional Context
This started happening a few days ago.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗