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

Escape characters inside a single quoted literal ENV variable are not being handled #146

Closed
rcjsuen opened this issue Aug 19, 2017 · 0 comments
Assignees
Labels

Comments

@rcjsuen
Copy link
Owner

rcjsuen commented Aug 19, 2017

FROM alpine
ENV var='\'
ENV var2='\\'

Hovering over var shows nothing and hovering over var2 shows \ instead of \\.

var should be \ and var2 should be \\ as shown in the following Docker build.

$ docker build .
Sending build context to Docker daemon  86.15MB
Step 1/5 : FROM alpine
 ---> 7328f6f8b418
Step 2/5 : ENV var '\'
 ---> Running in cd30a6e7e6ac
 ---> b8fdb94dfe21
Removing intermediate container cd30a6e7e6ac
Step 3/5 : ENV var2 '\\'
 ---> Running in cea00fe3b7b4
 ---> 419820fdd4a6
Removing intermediate container cea00fe3b7b4
Step 4/5 : RUN echo $var
 ---> Running in 15a4c3ea4df0
\
 ---> 83d6fc623f48
Removing intermediate container 15a4c3ea4df0
Step 5/5 : RUN echo $var2
 ---> Running in 5d245e2b2326
\\
 ---> f26a07c2caa9
Removing intermediate container 5d245e2b2326
Successfully built f26a07c2caa9
@rcjsuen rcjsuen added the bug label Aug 19, 2017
@rcjsuen rcjsuen self-assigned this Aug 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant