{"version":"2.1.325","anchor":"quoted-segment-parser-records-the-real-quote-character","canonical_anchor":"quoted-segment-parser-records-the-real-quote-character","heading":"Command parser now keeps track of which quote each piece of an argument used","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.325\/e\/quoted-segment-parser-records-the-real-quote-character","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.325","markdown":"### Command parser now keeps track of which quote each piece of an argument used\n\nA fix in how Claude Code splits command text into quoted and unquoted pieces, so double-quoted parts may now be recognised correctly\n\n**Unclear.** It is not clear which feature relies on this parser, such as permission checks or file path detection, so the visible effect for a user is unknown.\n\n**What**\n\nClaude Code has a small internal helper that reads a command string the way a shell (the program that runs typed commands) would. It breaks the text into pieces and notes, for each piece, whether it was inside double quotes, single quotes or no quotes at all.\n\n- Each recorded piece now takes its quote type from the variable the helper actually uses to follow quotes as it reads (`q`). Before, it used a different variable (`K`).\n\n- In the lines visible in the change, `K` never seemed to be set to a quote character. That means pieces were probably recorded with no quote type at all.\n\n- Later code checks for double-quoted pieces with `Ne.q === '\"'`. That check should now be able to match, so quoted and unquoted parts of an argument can be told apart, double-quoted ones in particular.\n\nThe findings come from the changed lines only. Neither traced which command or permission check calls this helper, so where the effect shows up is not known.\n\n**Why**\n\nIf quoted text was being treated as unquoted, anything that depends on that distinction may have read some quoted arguments wrongly. After this release, commands containing quoted text, especially double-quoted text, may be read differently than before. That is worth keeping in mind if a quoted command now behaves differently than it used to.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}