mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
The tokenizer did multiple scans the script line to get tokens. Before the fix the tokenizer on the first pass examined that string as double-quoted (Expandable) string not as here string, figured the average double quotation mark as a closing and then starting with the single quotation mark continued processing the line as single-quoted string which had no closing single quotation mark. The fix is to stop the first scan pass after getting '=' (assume assignment-expression '$a=' for next pass).