Follow Discord
Sweep 25 Sep 2026 · 19:33Z Build v2.1.283 504 read Stable v2.1.274 Latest v2.1.283 Next v2.1.283 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.281 ·

Bash path checks now understand cp/mv -t / --target-directory

Bash permission checks now understand cp and mv with -t or --target-directory and check all their files as writes

Entry
JSON All of v2.1.281
EntryKind: in v2.1.281,
ChangesSection of the release
What

Before running a shell command, Claude Code checks whether the files it would write to are inside the folders you have allowed. The copy and move commands cp and mv can name their destination folder with an option instead of as the last argument. That option is now recognised in these forms:

  • --target-directory, including clear shortenings such as --target, and the =value form.
  • -t, including when it is combined with other single-letter options in one group.

When a destination folder is given this way, every other file named in the command counts as a write. Before, only the last argument was treated as the destination. A destination attached directly to the option (-t/dir, --target-directory=dir) is also added to the paths checked against your allowed folders.

Why

With this form of cp or mv, the last argument is not the destination, so the old check looked at the wrong path. Now the real destination is the one checked against your allowed folders.

See this entry in the whole of v2.1.281 →

Feedback