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

env: fix errors on valid interpolation expressions #307

Merged
merged 1 commit into from Sep 23, 2022

Commits on Sep 23, 2022

  1. env: fix errors on valid interpolation expressions

    The parser was too strict here and would reject valid constructs
    that used an unescaped `$` that was not part of a variable
    expression (and not ambiguous).
    
    Now, only errors for unmatched braced expressions (e.g. `${FOO`)
    are returned, but other valid cases are ignored and the `$` will
    be treated literally, e.g. `a $ string` -> `a $ string`, which is
    the same as in POSIX.
    
    Signed-off-by: Milas Bowman <milas.bowman@docker.com>
    milas committed Sep 23, 2022
    Copy the full SHA
    85f1221 View commit details
    Browse the repository at this point in the history