Follow Discord
Sweep 06 Nov 2026 · 01:32Z Build v2.1.319 537 read Stable v2.1.311 Latest v2.1.318 Next v2.1.319 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.277 ·

Env-var-prefix stripping in shell-command normalization now conditional

Shell-command normalization can now skip stripping VAR=value prefixes when matching permission rules

Under the hood Internal Changes
JSON All of v2.1.277
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Bash SafetyArea: what it touches
Internal ChangesKind: in v2.1.277,
Internal ChangesSection of the release

Unclear The finding does not say which call sites pass false or what practical difference this makes for a user writing permission rules.

What

When Claude Code checks a shell command against permission rules, it first normalizes the command text by stripping leading VAR=value environment-variable assignments and shell wrapper keywords like builtin or noglob. That stripping step is now controlled by a new boolean parameter, n, which defaults to true. Several existing call sites already pass false, meaning they skip the VAR=value stripping and match against the command text as written.

Why

This lets some permission checks see the full original command, including any environment-variable prefix, instead of always having that prefix stripped away first. That can affect whether a permission rule matches a command that starts with a variable assignment.

What the documentation says
VAR Configuration reference modified, high confidence Each folder is interpreted on the machine the session runs on. For a Code session on an SSH host, `~` means the remote user's home, an entry that references a `%VAR%` is ignored there (environment variables belong to the machine that defin… see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtThe finding does not say which call sites pass false or what practical difference this makes for a user writing permission rules.
Anthropic's documentation agreesVAR on Configuration reference

See this entry in the whole of v2.1.277 →

Feedback