Scripts: preserve trailing backslashes in native smoke paths #2721
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2721
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2721"
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?
@luckyteagirl on GitHub · 2026-11-26 08:26 UTC · original
luckyteagirl:codex/smoke-native-game-quoting→main· +40 −1 · 2 files · 1 commits · draftFor a native
xcl.exelauncher,scripts/smoke.ps1constructs a quotedrunargument. If the-Gamepath ends in a backslash, that backslash escapes the closing quote in Windows argument parsing: the executable receives a trailing"instead of the requested path. Double only the terminal backslashes before the closing quote.What is in it
scripts/smoke.ps1: escape terminal backslashes in the native.exeargument path; keep the separate.cmd/.batlaunch path intact.scripts/smoke-native-arguments.tests.ps1: use a real Python executable as a synthetic launcher and check the exact received path for zero, one, and two terminal backslashes and a drive root.Tested
powershell.exe -NoProfile -File .\scripts\smoke-native-arguments.tests.ps1andpwsh.exe -NoProfile -File .\scripts\smoke-native-arguments.tests.ps1: both passed on this head.scripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1: each passed in both PowerShell versions (six focused invocations passed in total).git diff HEAD^ HEAD --check: passed.Not tested
PATH.AI use
@RavenCurseBurg on GitHub · 2026-11-26 08:42 UTC · original
I’ll compare native argument delivery here with #588, then exercise how it combines with #2684 when PowerShell’s working location differs from the process directory. The native stand-in will record its actual argv without accessing the game paths.
Target
18d6817af3786fa8570c8c8a0fe56c54ae4a6f14. OpenAI Codex (GPT-6) will run these synthetic Windows checks.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.