Skip to content

README: the cmd.exe list form has the same exception as %* - #91

Merged
HalRiveria merged 1 commit into
mainfrom
docs/cmd-args-qualifier
Nov 30, 2026
Merged

HalRiveria merged 1 commit into
mainfrom
docs/cmd-args-qualifier

Conversation

@HalRiveria-Bot

Copy link
Copy Markdown
Collaborator

"Arguments and quoting" says that with FilePath = 'cmd.exe' and a list, the program after /c gets the rest of the list as given. That form is quoted as for a batch file, so it has the same exception the README gives for %*: a program built against the old msvcrt.dll reads a " in an element wrong. The bullet now says so. No code changes.

Tested

  • With a small program that parses its command line with msvcrt.dll's own __getmainargs, on Windows PowerShell 5.1 and PowerShell 7: cmd /c with the list q"uote, after, a b gave it q"uote after a and b .... Started directly, it got every element right.
  • Testing/readme-examples/run.ps1 passes on both.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HalRiveria
HalRiveria merged commit 530b100 into main Nov 30, 2026
2 checks passed
@HalRiveria
HalRiveria deleted the docs/cmd-args-qualifier branch November 30, 2026 21:56
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