{"version":"2.1.333","anchor":"bash-cddirname-parent-path-regex-fixed","canonical_anchor":"bash-cddirname-parent-path-regex-fixed","heading":"Parent folder for cd and dirname commands is now worked out from the right path","tier":"notice","area":"Bash Tool","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/bash-cddirname-parent-path-regex-fixed","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Parent folder for cd and dirname commands is now worked out from the right path\n\nWhen Claude Code works out the parent folder in a `cd` or `dirname` command, it now uses that command's own path\n\n**What**\n\nWhen Claude runs a shell command that uses `cd` or `dirname`, Claude Code works out the parent folder of the path involved. That step used to read a path from elsewhere in the code instead of the one it was given. It now uses the path it was given, and the rule for removing the last part of a path was rewritten as well.\n\n**Why**\n\nThis may correct how Claude Code checks the folders these commands reach when it decides whether to allow them.\n\n- Area: Bash Tool\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}