{"version":"2.1.335","anchor":"bash-parser-flags-cat-heredocs-that-may-be-empty","canonical_anchor":"bash-parser-flags-cat-heredocs-that-may-be-empty","heading":"Shell commands using cat with a heredoc can now be flagged as possibly empty","tier":"internal","area":"Bash Safety","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/bash-parser-flags-cat-heredocs-that-may-be-empty","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Shell commands using `cat` with a heredoc can now be flagged as possibly empty\n\nClaude Code's shell command reader now marks some heredoc commands as possibly empty\n\n**Unclear.** Neither the condition that triggers the mark nor what the mark changes about how such commands are handled is known.\n\n**What**\n\nA heredoc is a way of feeding several lines of text into a command, written with `<<`. It is often used with `cat`. Before Claude runs a shell command, Claude Code reads the command to understand what it does. That reading now marks a command as a `cat` heredoc that may be empty when it contains `<<` and a further condition holds.\n\n**Why**\n\nThe mark may feed into the checks Claude Code makes before running heredoc commands, such as permission and safety checks.\n\n- Area: Bash Safety\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}