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

Fixes {} parsing inside shell scripts #4288

Merged
merged 3 commits into from
Mar 29, 2022
Merged

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Mar 29, 2022

What's the problem this PR addresses?

We didn't support passing {} into shell arguments.

Fixes #2670

How did you fix it?

Just a matter of removing { of the list of special characters (so we can write echo { or echo {foo), and adding a special case for {} (so we can write echo {} or echo foo{}). It seems that echo } isn't valid in zsh, so I didn't try to support it.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis arcanis enabled auto-merge (squash) March 29, 2022 16:45
@arcanis arcanis disabled auto-merge March 29, 2022 20:22
@arcanis arcanis merged commit a2cf91a into master Mar 29, 2022
@arcanis arcanis deleted the mael/find-pattern-shell branch March 29, 2022 20:22
merceyz pushed a commit that referenced this pull request Oct 21, 2023
* Fixes {} parsing inside shell scripts

* Adds tests

* Compiles grammar

(cherry picked from commit a2cf91a)
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] Syntax error in parsing package.json run scripts containing parameter substitutions or {}
1 participant