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

Unquote double quoted shell values #729

Merged
merged 3 commits into from
Jul 5, 2024
Merged

Unquote double quoted shell values #729

merged 3 commits into from
Jul 5, 2024

Conversation

jfrost-mo
Copy link
Member

This handles the double quoting that arises from CSET_ADDOPTS arguments never actually being parsed by a shell.

Contribution checklist

Aim to have all relevant checks ticked off before merging. See the developer's guide for more detail.

  • Documentation has been updated to reflect change.
  • New code has tests, and affected old tests have been updated.
  • All tests and CI checks pass.
  • Ensured the pull request title is descriptive.
  • Conda lock files have been updated if dependencies have changed.
  • Attributed any Generative AI, such as GitHub Copilot, used in this PR.
  • Marked the PR as ready to review.

@jfrost-mo jfrost-mo added the bug Something isn't working label Jul 4, 2024
@jfrost-mo jfrost-mo self-assigned this Jul 4, 2024
@jfrost-mo jfrost-mo requested a review from daflack July 4, 2024 11:37
@jfrost-mo jfrost-mo force-pushed the fix_shell_quoting branch from 794aade to 889333f Compare July 4, 2024 11:37
@jfrost-mo jfrost-mo marked this pull request as ready for review July 4, 2024 11:37
Copy link
Contributor

github-actions bot commented Jul 4, 2024

Coverage

Copy link
Contributor

@daflack daflack left a comment

Choose a reason for hiding this comment

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

Looks good, but when I run it I still get the same error message...

@jfrost-mo
Copy link
Member Author

Ack. More investigation is needed then...

@jfrost-mo jfrost-mo marked this pull request as draft July 4, 2024 13:09
@jfrost-mo
Copy link
Member Author

There are still some issues with this method. The wrong types of quotes are being expanded, for one.

@jfrost-mo jfrost-mo force-pushed the fix_shell_quoting branch from 889333f to c6a4f14 Compare July 4, 2024 13:27
@jfrost-mo jfrost-mo marked this pull request as ready for review July 4, 2024 13:37
@jfrost-mo jfrost-mo requested a review from daflack July 4, 2024 13:37
@jfrost-mo
Copy link
Member Author

jfrost-mo commented Jul 4, 2024

Should be a more complete fix now, and is hopefully also more readable?

Copy link
Contributor

@daflack daflack left a comment

Choose a reason for hiding this comment

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

still getting the same error, but agree definitely more readable

@jfrost-mo jfrost-mo changed the base branch from 497_QQ_plots to main July 4, 2024 14:50
@jfrost-mo jfrost-mo force-pushed the fix_shell_quoting branch from 108e56e to fb7e81a Compare July 4, 2024 14:50
Copy link
Contributor

@daflack daflack left a comment

Choose a reason for hiding this comment

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

Looks good to me, happy to approve

jfrost-mo added 3 commits July 5, 2024 10:41
This handles the double quoting that arises from CSET_ADDOPTS arguments
never actually being parsed by a shell, and thus still having quotes.
@jfrost-mo jfrost-mo force-pushed the fix_shell_quoting branch from 42db7c6 to 9bb5c9d Compare July 5, 2024 09:42
@jfrost-mo
Copy link
Member Author

Rebased then merged.

@jfrost-mo jfrost-mo merged commit 29caa4f into main Jul 5, 2024
7 checks passed
@jfrost-mo jfrost-mo deleted the fix_shell_quoting branch July 5, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants