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

Issues 1456 1463, command quote bug #1477

Merged
merged 2 commits into from
Jun 8, 2021
Merged

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Jun 4, 2021

Tests that expose the problem and a go.mod replace directive to use a fixed fork of an upstream dependency where I've fixed the bug and submitted a PR but want to get it fixed for the release and the author probably won't get to it in time.

Edit: upstream merged my PR already and I changed this patch to use it instead of my fork

Fixes #1456
Fixes #1463

Split out the bit that parses the command and add some tests for it.

Includes a currently failing test `subshell-single-quoting` that
triggered this.
@eikenb eikenb added this to the 0.26.0 milestone Jun 4, 2021
@eikenb eikenb requested a review from a team June 4, 2021 00:24
@eikenb
Copy link
Contributor Author

eikenb commented Jun 4, 2021

Upstream PR to fix this is mattn/go-shellwords#49

Latest go-shellwords release has my fix for the shell quoting issue
merged. Switching to it.
@eikenb eikenb force-pushed the issues-1456-1463-command-quote branch from d6ce868 to a245455 Compare June 4, 2021 21:44
Copy link
Contributor

@findkim findkim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat, I peeked over the in the upstream PR, the changes make sense and good find! Happy to see the new tests

@eikenb eikenb merged commit d43dff9 into master Jun 8, 2021
@eikenb eikenb deleted the issues-1456-1463-command-quote branch June 8, 2021 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants