{"version":"2.1.333","anchor":"bash-permission-check-re-evaluates-commands-that-use-pwd","canonical_anchor":"bash-permission-check-re-evaluates-commands-that-use-pwd","heading":"Shell commands that use $PWD get a second permission check","tier":"notice","area":"Permissions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/bash-permission-check-re-evaluates-commands-that-use-pwd","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Shell commands that use $PWD get a second permission check\n\nCommands that mention PWD or pwd are now re-checked with the real working folder filled in, and the stricter permission result wins\n\n**What**\n\nBefore Claude Code runs a shell command, it checks whether the command is allowed, needs your approval, or is blocked. When a command contains `PWD` or `pwd` (which stand for the current working folder), Claude Code now makes a second check: it fills in the real folder path and checks the command again. Whichever of the two results is stricter is the one used.\n\nThis second check is skipped on Windows and when commands run on a remote machine. An older, narrower check for these commands has been removed.\n\n**Why**\n\nCommands built on `$PWD` are now judged by where they actually point. Some may ask for approval where they used to run, or the other way round.\n\n- Area: Permissions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}