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

Escaped spaces in EnvVar value fails to parse #24

Open
dsherret opened this issue Oct 9, 2021 · 0 comments · May be fixed by #35
Open

Escaped spaces in EnvVar value fails to parse #24

dsherret opened this issue Oct 9, 2021 · 0 comments · May be fixed by #35

Comments

@dsherret
Copy link
Contributor

dsherret commented Oct 9, 2021

The following fails to parse:

ENV MY_DOG=Rex\ The\ Dog
could not parse Dockerfile:  --> 1:17
  |
1 | ENV MY_DOG=Rex\ The\ Dog␊
  |                 ^---
  |
  = expected EOI or env_pair

Note the documentation mentions that spaces can be escaped with backslashes (example above is from the documentation):

The value will be interpreted for other environment variables, so quote characters will be removed if they are not escaped. Like command line parsing, quotes and backslashes can be used to include spaces within values.

https://docs.docker.com/engine/reference/builder/#env

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 a pull request may close this issue.

1 participant