play.ps1: paths with square brackets are looked up literally #580
No reviewers
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/Belobug--VIctory-Belobug-AMD!580
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-580"
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?
@AccelArch on GitHub · 2026-11-27 12:20 UTC · original
AccelArch:play-ps1-literal-path→a-publier· +4 −4 · 1 files · 1 commits · openscripts/play.ps1looks up the executable, thevictory.exebuild and the repository folder withTest-Path,Resolve-PathandPush-Location. Their-Pathparameter treats[and]as wildcards, so a path such asC:\Games\Game [Steam]\game.exe, or a clone in a folder likeD:\VIctory [AMD], is reported as missing ("No ...game.exe." or "No ...victory.exe. Build it first (README.md).") although it exists.This passes those four paths with
-LiteralPath. Nothing else changes (4 lines, CRLF kept).Tested
Windows PowerShell 5.1.26100, with a stand-in
victory.exe(a small program that prints its arguments and returns the exit code fromSTANDIN_EXIT), running the base script and this one with every combination of a plain or bracketed repository folder (...\scripts\play.ps1under a plain folder or underDir [AMD]) and a plain or bracketed executable path (My Copy\game.exe,Game [Steam]\game.exe):run|...\Game [Steam]\game.exe|--execute), and the exit code of the program (7 in the test) is still returned.The game was not run and no Rust was built.
Overlap
#389 and #403 already use
-LiteralPathon these lines inside larger changes, and #563 changes nearby lines. Whichever lands second needs a rebase; I can rebase this on top of any of them.AI-assisted.
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.