Follow Discord
Sweep 03 Nov 2026 · 22:27Z Build v2.1.318 536 read Stable v2.1.311 Latest v2.1.318 Next v2.1.318 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.317 ·

Bash commands can be refused before they run, behind a new switch

Behind a new remote switch, Claude Code can check a shell command, refuse it before bash runs, and stop on old bash versions

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

Unclear It is not clear whether the switch counts as on or off when the server sends no value.

What

Behind a new remote switch, Claude Code checks a shell command before handing it to bash (the program that runs terminal commands). When that switch is on:

  • if the check finds a reason to refuse, the command is refused before bash runs it
  • a guard line is added that prints a message and stops with exit code 126, meaning the command could not run, on bash versions 2 and 3, and in some cases 4

Separately, Claude Code adds extra wrapper code for bash around commands that take trailing input.

Why

This adds a way to stop a shell command before it executes and to refuse old bash versions. It does nothing unless the switch is on.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether the switch counts as on or off when the server sends no value.

See this entry in the whole of v2.1.317 →

Feedback