{"version":"2.1.221","anchor":"bash-parser-bails-out-on-unbalanced-parentheses","canonical_anchor":"bash-parser-bails-out-on-unbalanced-parentheses","heading":"Bash [[ ]] parser bails out on unbalanced parentheses","tier":"internal","area":"Permissions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221\/e\/bash-parser-bails-out-on-unbalanced-parentheses","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221","markdown":"### Bash [[ ]] parser bails out on unbalanced parentheses\n\nComplex bash double-bracket tests now bail out early instead of being misjudged by the permission scanner.\n\n**What**\n\nThe double-bracket regex scanner stops as soon as the parser desyncs rather than continuing and checking only the final depth.\n\n**Details**\n\n- If paren depth ever goes negative mid-scan, the scanner returns a `too-complex` result with `differential: !0`.\n\n**Evidence**\n\n`[[ ]] regex has unbalanced parentheses (parser desync)`\n\n- Area: Permissions\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 0\/5"}