[BUG] Exclamation mark is escaped
Resolved 💬 10 comments Opened Jul 3, 2025 by savchenko Closed Jan 26, 2026
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.41 (Claude Code)
- Operating System: Debian 13
- Terminal: foot
Bug Description
I often observe claude executing a benign command with exclamation mark somewhere in the middle only to raise Error: ERROR: syntax error at or near "\"
Steps to Reproduce
- Work with SQL for some time
- Observe the error
Expected Behavior
Command is executed as-shown.
Actual Behavior
Error: ERROR: syntax error at or near "\"
LINE 1: ...1 END) as no_size_data FROM document WHERE status \!= 'delet...
Additional Context
Command shown after Bash(... had no backslash before the exclamation mark.
This issue has 10 comments on GitHub. Read the full discussion on GitHub ↗