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 trying to parse subshell calls as env vars #50

Closed
wants to merge 1 commit into from
Closed

fix trying to parse subshell calls as env vars #50

wants to merge 1 commit into from

Conversation

eikenb
Copy link
Contributor

@eikenb eikenb commented Jun 15, 2021

Parser didn't detect subshell calls, $(), and tried to parse them as environment variables. This picks up the $( pattern and continues on with parsing, leaving it as is.

Added tests for it as well.

Parser didn't detect subshell calls, $(), and tried to parse them as
environment variables. This picks up the $( pattern and continues on
with parsing, leaving it as is.

Added tests for it as well.
@codecov-commenter
Copy link

codecov-commenter commented Jun 15, 2021

Codecov Report

Merging #50 (c90ad31) into master (973b9d5) will increase coverage by 0.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
+ Coverage   89.62%   89.81%   +0.19%     
==========================================
  Files           3        3              
  Lines         212      216       +4     
==========================================
+ Hits          190      194       +4     
  Misses         15       15              
  Partials        7        7              
Impacted Files Coverage Δ
shellwords.go 89.58% <100.00%> (+0.22%) ⬆️

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 973b9d5...c90ad31. Read the comment docs.

@eikenb
Copy link
Contributor Author

eikenb commented Jun 30, 2021

I'm re-looking at this as it doesn't seem like the tests are as good as they should be. Mainly that the $() syntax should be treated like the `` (backtick) syntax more thoroughly in the tests.

@eikenb
Copy link
Contributor Author

eikenb commented Jun 30, 2021

I'm just going to close this PR and re-figure this out. This "fix" doesn't play well with the normal command (backtick) parsing and running. I'll re-submit when I have something better.

@eikenb eikenb closed this Jun 30, 2021
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.

2 participants