{"version":"2.1.334","anchor":"bash-env-export-shadow-check-behind-a-bot-protected-gate","canonical_anchor":"bash-env-export-shadow-check-behind-a-bot-protected-gate","heading":"Claude Code compares shell commands that set environment variables","tier":"internal","area":"Bash Safety","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/bash-env-export-shadow-check-behind-a-bot-protected-gate","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Claude Code compares shell commands that set environment variables\n\nA new check compares a shell command Claude Code sends with a version rebuilt from its exports, written content and directory change\n\n**Unclear.** It is not clear whether this check changes how commands run or only records the comparison.\n\n**What**\n\nClaude Code has a new check for shell commands. It compares a command that was sent with a version Claude Code rebuilds from three parts:\n\n- the environment variable exports in it (lines that set a named value for the command to use)\n\n- the content it writes\n\n- a change of directory (`cd`)\n\nThe check runs only when a switch controlled from Anthropic's servers allows it. It looks like a diagnostic check.\n\n**Why**\n\nThe check looks at how Claude Code builds shell commands that export environment variables.\n\n- Area: Bash Safety\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no"}