{"version":"2.1.333","anchor":"heredoc-stripping-in-bash-parsing-tightened","canonical_anchor":"heredoc-stripping-in-bash-parsing-tightened","heading":"Shell commands containing heredocs are read more strictly for permission checks","tier":"notice","area":"Bash Tool","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/heredoc-stripping-in-bash-parsing-tightened","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Shell commands containing heredocs are read more strictly for permission checks\n\nClaude Code now matches heredoc end-markers more strictly and starts blanking their text after the opening line when checking shell commands\n\n**What**\n\nA 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.\n\nTwo things are different now:\n\n- 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.\n\n- Blanking: the blanked-out section now starts on the line after the one that opens the heredoc, instead of at a different point.\n\n**Why**\n\nThis changes how shell commands are read when Claude Code decides whether they need your approval, so commands containing heredocs are judged more precisely.\n\n- Area: Bash Tool\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}