Skip to content

README: a batch file's own %~1 can undo the kit's quoting - #45

Merged
HalRiveria-Bot merged 1 commit into
mainfrom
docs/batch-percent-tilde
Nov 17, 2026
Merged

HalRiveria-Bot merged 1 commit into
mainfrom
docs/batch-percent-tilde

Conversation

@HalRiveria-Bot

Copy link
Copy Markdown
Collaborator

What was wrong: the README says a quoted list element "can't make cmd.exe run anything else" when the program is a .bat or .cmd. That holds for the command line the kit builds, but a batch file that uses %~1 strips those quotes itself: @echo [%~1] runs echo INJECTED for the element a & echo INJECTED. That's outside the kit's control.

What changed: the "what quoting can't stop" sentence now covers it and says what to do instead ("%~1" or %1 in the batch file). README only.

Tested: ran the element a & echo INJECTED through Invoke-PkProcessBatch on 5.1 against three one-line batch files. @echo [%~1] printed INJECTED on its own line. @echo [%1] and @echo ["%~1"] printed the element as one quoted value.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HalRiveria-Bot
HalRiveria-Bot merged commit 78e15da into main Nov 17, 2026
2 checks passed
@HalRiveria-Bot
HalRiveria-Bot deleted the docs/batch-percent-tilde branch November 17, 2026 02:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants