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

Stricter safety checks for declare, typeset, local, export, readonly, and unset commands

Claude Code now catches more shell commands that could be reinterpreted unsafely by the real shell before running them

Group of 5 You'll notice Bug Fixes
JSON All of v2.1.273
You'll noticeTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Bash SafetyArea: what it touches
Bug FixesKind: in v2.1.273,
ImprovementsSection of the release

What

When Claude Code decides whether a shell command is simple enough to run without invoking the full shell, it now rejects more edge cases that could behave differently than expected:

  • declare, typeset, and local commands are rejected as too complex unless their operand is a plain variable name with a simple, inert value, since the real shell could otherwise treat it as an array subscript, an expanded name, or a compound assignment.
  • export and readonly commands are now also rejected when their operand looks like an array assignment (matching flag patterns the shell would evaluate as a compound array assignment).
  • unset no longer just checks for a bare variable name; it also allows a second, more permissive pattern under certain conditions, but anything that still doesn't match either pattern is now rejected as too complex, since the shell might expand or evaluate it unexpectedly.
  • These rejections are now marked internally with a differential flag, replacing a fixed classification that was previously used for these cases.

Why

These checks exist to stop Claude Code from treating a shell command as "simple" when the real shell could actually parse or evaluate it in a surprising way (for example, expanding into an array assignment). Tightening them reduces the chance that a command behaves differently than Claude Code's analysis assumed.

Read from
Names in the bundleexportreadonly
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up readonly, on Model Context Protocol (MCP). * [`readOnlyHint`](https://modelcontextprotocol.io/specification/latest/schema#toolannotations-readonlyhint): the tool only reads data connectors/building/mcp see the edit
Added since A small documentation edit on Telemetry and egress touched a line naming export after this was published. With `disableEssentialTelemetry`, `disableNonessentialTelemetry`, `disableNonessentialServices`, and `disableAutoUpdates` all set to `true`, and [`modelCatalogEnabled`](/docs/third-party/claude-desktop/configuration#modelcatalogenabled) se… third-party/claude-desktop/telemetry see the edit
Confirmed since Anthropic's documentation has since written up export, on Create and distribute a plugin marketplace. In CI/CD environments, configure a git credential helper before installing plugins from private repositories. On GitHub Actions, export a token with read access to the marketplace repository as `GH_TOKEN`, then run `gh auth setup-git`. The… plugin-marketplaces see the edit
How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agreesAnthropic's documentation has since written up export, on Create and distribute a plugin marketplace.

See this entry in the whole of v2.1.273 →

Feedback