[BUG] crash on grep
Environment
- Platform (select one):
- [x ] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.55 (Claude Code)
- Operating System: macOS 14.3
- Terminal: Terminal App
Bug Description
ls -la | grep -E "\.env|envforce")
⎿ Running…
✶ Incubating… (1s · ⚒ 468 tokens · esc to interrupt)
⏵⏵ auto-accept edits on (shift+tab to cycle)
node:events:496
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
Emitted 'error' event on Socket instance at:
at emitErrorNT (node:internal/streams/destroy:170:8)
at emitErrorCloseNT (node:internal/streams/destroy:129:3)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
errno: -32,
code: 'EPIPE',
syscall: 'write'
}
Node.js v22.14.0
Steps to Reproduce
ask claude to grep and pipe
Expected Behavior
gives the pipe result
Actual Behavior
claude crash and give the above error
Additional Context
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗