{"version":"2.1.333","anchor":"sed-check-regex-tightened","canonical_anchor":"sed-check-regex-tightened","heading":"Safety check on sed commands was tightened","tier":"notice","area":"Bash Tool","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sed-check-regex-tightened","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Safety check on sed commands was tightened\n\nThe pattern Claude Code uses to check sed commands now expects exactly one space before a w or e flag rather than one or more\n\n**Unclear.** It is not clear whether this changes which `sed` commands are actually flagged in practice.\n\n**What**\n\n`sed` is a command-line tool for editing text. Claude Code checks `sed` commands when deciding whether a command is safe to run, and part of that check looks for a `w`, `W`, `e` or `E` flag. That check now expects exactly one whitespace character before the flag. Before, it accepted one or more.\n\n**Why**\n\nThis changes how Claude Code classifies some unusual `sed` commands as safe or not.\n\n- Area: Bash Tool\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}