Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pass through of arguments that include spaces #8

Closed
wants to merge 2 commits into from

Conversation

mnivet
Copy link
Contributor

@mnivet mnivet commented Jun 28, 2023

Not expected but I’ve take the time to fix #7 since I’ve found another issue for which I’ve had no workaround : Arguments that contain spaces where not correctly transmitted.

Instead of being send as a single argument they were send as multiple arguments since they were not encapsulated into double quotes.

NB : There is probably still some issues if an argument include spaces, and ends with a backslash or contains a backslash followed by a double quotes, because there is an awkward logic in command line parsing based on the parity of backslashes before a double quote that has always be hard to manage and understand for me (see :
https://web.archive.org/web/20220604063845/https://docs.microsoft.com/en-us/previous-versions//17w5ykft(v=vs.85)?redirectedfrom=MSDN)

mnivet added a commit to avanteam/win-shim that referenced this pull request Jun 28, 2023
To release a pre-version while waiting an official one if PR is accepted
aloneguid#8
@mnivet
Copy link
Contributor Author

mnivet commented Oct 11, 2023

For the two fixes included in that PR, #9 is equivalent, and #11 is better, so I close this one.

@mnivet mnivet closed this Oct 11, 2023
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.

[BUG] Args are not passed through as is by default
1 participant