{"version":"2.1.333","anchor":"drop-in-sweep-of-unsafe-path-or-ref-tokens-in-bash-parser-r","canonical_anchor":"drop-in-sweep-of-unsafe-path-or-ref-tokens-in-bash-parser-r","heading":"Changed handling of closing brackets in shell command paths","tier":"internal","area":"Bash Tool","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/drop-in-sweep-of-unsafe-path-or-ref-tokens-in-bash-parser-r","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Changed handling of closing brackets in shell command paths\n\nClaude Code changed how it trims closing brackets from the end of paths it reads out of shell commands for permission checks\n\n**Unclear.** What practical difference the new trimming rule makes to which commands are allowed is not clear.\n\n**What**\n\nBefore Claude Code runs a shell command, it picks out the file paths in that command so it can check whether the command is allowed. Part of this step trims closing brackets (`)`, `]` or `}`) from the end of each word. Previously any run of them at the end was trimmed. Now the trimming only applies to a run that is not preceded by another closing bracket.\n\n**Why**\n\nThe paths found in a command decide which permission checks apply to it. Commands with words ending in brackets may be checked differently.\n\n- Area: Bash Tool\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}