{"version":"2.1.334","anchor":"bash-permission-check-pwd-rewrite-pass-is-now-gated","canonical_anchor":"bash-permission-check-pwd-rewrite-pass-is-now-gated","heading":"An extra Bash permission check for $PWD commands now runs only when enabled","tier":"internal","area":"Bash Safety","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/bash-permission-check-pwd-rewrite-pass-is-now-gated","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### An extra Bash permission check for `$PWD` commands now runs only when enabled\n\nThe second permission check on shell commands that mention `$PWD` or `pwd` now depends on a switch, and denials can carry an extra note\n\n**Unclear.** It is not clear what controls the switch, so whether the second check runs for a given reader is unknown.\n\n**What**\n\nBefore running a shell command, Claude Code checks whether it needs your permission. For commands containing `PWD` or `pwd`, it ran a second check with the current folder filled in. Before, that second check always ran. Now it runs only when an internal switch allows it.\n\nThe check also keeps track of whether it stopped or was left unfinished, and adds a note to the message when a command is denied.\n\n**Why**\n\nThis changes when some Bash commands are denied or need your approval.\n\n- Area: Bash Safety\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}