You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Bash ToolArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What
A heredoc is a way of feeding several lines of text into a shell command, closed by an end word you choose, such as EOF. When Claude Code checks a shell command against your permission rules, it blanks out the heredoc's text so that text is not read as commands.
Two things are different now:
End word: the end word must now stop where it appears, so it no longer matches when followed straight away by a letter, digit or underscore.
Blanking: the blanked-out section now starts on the line after the one that opens the heredoc, instead of at a different point.
Why
This changes how shell commands are read when Claude Code decides whether they need your approval, so commands containing heredocs are judged more precisely.