Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.330 ·

Extra warning for rm -r on a variable path ending in a wildcard

Claude Code now warns that rm -r $VAR/* can remove everything if the variable is empty, and flags commands whose folder changes it can't follow

You'll notice Improvements
JSON All of v2.1.330
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.

See this entry in the whole of v2.1.330 →

Feedback