Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.97 ·

Bash Tool: Environment Variable Validation

Entry
JSON All of v2.1.97
EntryKind: in v2.1.97,
ImprovementsSection of the release

The Bash tool now validates environment variable names in command prefixes using a regex pattern (/^([A-Za-z_][A-Za-z0-9_]*)/) and checks them against a safe-list. Commands that set non-safe-listed environment variables require explicit approval.

Evidence

New function fhz with env var validation regex and Ly6 safe-list checker (search for "A-Za-z_][A-Za-z0-9_]*")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.97 →

Feedback