[BUG] Display adds newlines on [<digit>] pattern

Resolved 💬 5 comments Opened Oct 29, 2025 by gabiteodoru Closed Jan 9, 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 v2.0.28
▝▜█████▛▘ Sonnet 4.5 · Claude Pro
▘▘ ▝▝

bash printf '[0]'

● I'll execute that bash command for you.

● Bash(printf '[0]')
⎿  [
0
]

What Should Happen?

● Bash(printf '[0]')
⎿  [0]

Error Messages/Logs

Steps to Reproduce

tell Claude CLI:
bash printf '[0]'

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

v2.0.28

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗