You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Bash SafetyArea: what it touches
ImprovementsKind: in v2.1.330,
ImprovementsSection of the release
What
Claude Code checks shell commands for risky deletions before running them. For rm -r, the recursive delete command, a target shaped like $VAR/* now gets an extra note: it can remove everything if the variable is empty. An empty variable turns the target into /*, which means every file from the top of the drive.
There is also a new message saying Claude Code can't follow the directory changes in this command. Separately, the way Claude Code handles shell variables in commands now depends on a new switch from Anthropic's server, which stays off unless it is switched on remotely.
Why
An empty variable can turn an ordinary cleanup command into one that deletes far more than intended. The warning makes that risk visible before you approve the command.