{"version":"2.1.333","anchor":"shell-parser-regex-fix-for-command-substitution-trailing-pat","canonical_anchor":"shell-parser-regex-fix-for-command-substitution-trailing-pat","heading":"Path checks handle .. after a command substitution differently","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/shell-parser-regex-fix-for-command-substitution-trailing-pat","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Path checks handle `..` after a command substitution differently\n\nWhen checking command paths for permissions, Claude Code now trims a trailing \/.. after a command substitution only at the very end\n\n**Unclear.** Which commands or paths are now matched differently by permission rules is not stated.\n\n**What**\n\nA command substitution is a part of a shell command, such as `$(...)`, that is replaced by another command's output. When Claude Code checks a command's file paths against your permission rules, it handles path pieces that follow a command substitution in a set way.\n\nA run of `\/..` after a command substitution is now trimmed only when it reaches the end of the path. Before, it was trimmed in more cases. Some paths are therefore checked differently.\n\n**Why**\n\nPermission matching on some unusual paths may now come out differently.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}