{"version":"2.1.335","anchor":"shell-path-command-permission-checks-cover-extra-operands","canonical_anchor":"shell-path-command-permission-checks-cover-extra-operands","heading":"Permission checks for file commands now look at extra arguments too","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335\/e\/shell-path-command-permission-checks-cover-extra-operands","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.335","markdown":"### Permission checks for file commands now look at extra arguments too\n\nWhen a shell command touches file paths, Claude Code now also checks its extra arguments and keeps whichever result is stricter\n\n**What**\n\nBefore Claude runs a shell command that works on file paths, Claude Code checks whether the paths are allowed. That check used to look only at one list of paths. It now also builds a list of the command's arguments. If that list is longer than the list of paths, Claude Code checks the extra arguments as well and keeps whichever of the two results is stricter.\n\n**Why**\n\nYou may see more permission prompts for commands such as `rm` or `cp` that are given several arguments.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}