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 issue 48: single-quote+ParseEnv bug #49

Merged
merged 2 commits into from
Jun 4, 2021
Merged

Fix issue 48: single-quote+ParseEnv bug #49

merged 2 commits into from
Jun 4, 2021

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Jun 3, 2021

Fixes issues with parsing shell lines with single quotes used to group things (eg. subshell calls).
Fix was to set got state to argQuoted as the double quote path used (and which worked for it).

Fixes #48

baseline, single-quote and double quote tests.
w/o fix single-quote test breaks, other 2 work.
Fixes issues with parsing shell lines with single quotes used to group
things (eg. subshell calls).

Fix was to set `got` state to `argQuoted` as the double quote path used
(and which worked for it).
@codecov-commenter
Copy link

codecov-commenter commented Jun 3, 2021

Codecov Report

Merging #49 (6bc4808) into master (501b5b2) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #49   +/-   ##
=======================================
  Coverage   89.62%   89.62%           
=======================================
  Files           3        3           
  Lines         212      212           
=======================================
  Hits          190      190           
  Misses         15       15           
  Partials        7        7           
Impacted Files Coverage Δ
shellwords.go 89.36% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 501b5b2...6bc4808. Read the comment docs.

@mattn
Copy link
Owner

mattn commented Jun 4, 2021

Thank you. I'll check this in later.

@mattn mattn merged commit 973b9d5 into mattn:master Jun 4, 2021
@mattn
Copy link
Owner

mattn commented Jun 4, 2021

Thank you

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.

Some unexpected quote handling behavior when ParseEnv is true
3 participants