Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.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

TierYou'll noticehow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaBash Toolwhat it touches
KindImprovementsin v2.1.275,
You'll notice

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

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 →