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

Bug: correct passing quoted arguments to Windows CMD #678

Merged
merged 4 commits into from
Oct 5, 2023

Conversation

PedroWitzel
Copy link
Contributor

Closes #296

Applied the proposed change to used raw_arg when passing args on the command builder.

Added two tests cases:

  1. to address the original bug
  2. a weird case from the article shared by @rivy, where a \ just before the ending " induces different parsing in different environments.

They were failing before the correction, but now are OK.

N.B.: new rustacean, all inputs are welcomed 😅

@sharkdp
Copy link
Owner

sharkdp commented Sep 16, 2023

@PedroWitzel Thank you very much for your contribution!

@rivy Any chance you could take a look at this? You seemed very knowledgeable in this area.. and I personally don't even have a Windows machine. If not, that's also fine of course!

@sharkdp sharkdp merged commit ae9b0bb into sharkdp:master Oct 5, 2023
15 checks passed
@PedroWitzel PedroWitzel deleted the fix-296 branch October 5, 2023 12:03
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 ~ quoting? failure on windows-platform
2 participants