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).
Testing
The tests are organized by testing language. Thus Pester tests, which are written in the PowerShell language, are in ./powershell and xUnit tests, written in C#, are in ./csharp. The sanity tests for the Full .NET build of PowerShell are in ./fullclr, and the third-party shebang test is in ./shebang.