Skip to content

ProcessStartInfo.ArgumentList vs. Arguments in Windows#27

Open
pryankster wants to merge 4 commits intosttz:masterfrom
pryankster:ArgumentList
Open

ProcessStartInfo.ArgumentList vs. Arguments in Windows#27
pryankster wants to merge 4 commits intosttz:masterfrom
pryankster:ArgumentList

Conversation

@pryankster
Copy link

Windows doesn't have a proper shell to speak of, and it's really bad at quoting. Was having problems with ZipDistro, so I converted the references to command line arguments in System.Diagnostics.ProcessStartInfo to use ArgumentList instead of Arguments. The elements added to ArgumentList shouldn't need to be quoted or escaped, because they will passed directly to the subprocess.

I haven't looked for other places that ProcessStartInfo is used in this project, but I assume that they would benefit from a similar treatment.

@pryankster pryankster changed the title Argument list ProcessStartInfo.ArgumentList vs. Arguments in Windows Sep 6, 2025
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.

1 participant