You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Bash SafetyArea: what it touches
ImprovementsKind: in v2.1.326,
ImprovementsSection of the release
What
Before Claude runs a shell command, Claude Code checks it to decide whether to ask your permission. Environment variables are named settings passed to programs, and HOME says where your home folder is.
The check for commands that change HOME now matches both export HOME= and export HOME+=. Previously only export HOME= was caught. The check also now joins variables set with += on a command line into a single NAME+=value.
Why
This tightens a security check, so a command that changes HOME by appending to it is no longer missed.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed sinceAnthropic's documentation has since written up HOME, on Choose a permission mode.> * Some wildcarded paths, like `Bash($HOME/bin/*)` or `PowerShell(C:\tools\x.exe *)`permission-modessee the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up HOME, on Choose a permission mode.