Scripts: smoke.ps1 corrupts -Game paths that end with a trailing backslash #16
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/zortos293--XSEmu#16
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ArpitK24 on GitHub · 2026-11-27 05:54 UTC · original
In
scripts/smoke.ps1, the emulator arguments are built as:On Windows, if
-Gamehas a trailing backslash (e.g.D:\Games\MyTitle\from PowerShell tab-completion),\"at the end is parsed byCommandLineToArgvW/ Ruststd::env::args()as an escaped literal quote, corrupting the path passed toXSEmu.exe.Plan:
$Gamebefore wrapping it in quotes inscripts/smoke.ps1.scripts/test-smoke-args.tests.ps1) verifying that a-Gamepath with spaces and a trailing backslash is received intact by a native console executable.