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.275 ·

New bash risk explanation for env -P

Claude Code now explains the risk of running env -P with a relative directory

You'll notice Improvements
JSON All of v2.1.275
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Bash ToolArea: what it touches
ImprovementsKind: in v2.1.275,
ImprovementsSection of the release
What

Claude Code's bash command safety analyzer, which explains why a command might be risky before it runs, now has a specific explanation for env -P: when given a relative directory, the program env runs is looked up starting from the directory you launched the command in, not from a fixed location. This joins existing explanations for commands that wrap other commands or run without a fixed shell, like parallel, script, su, and sudo.

Why

This helps you understand why env -P with a relative path is flagged, since it means the actual program executed depends on where you happen to be standing when you run the command.

See this entry in the whole of v2.1.275 →

Feedback