buildkit/frontend/dockerfile/shell
Tibor Vass b9859b2d49 dockerfile: RUN's CustomName no longer consume quotes and only replaces environment variables if set
```
FROM alpine
RUN echo "Hey $name"
```

When building the above Dockerfile, the RUN command used to show: `echo Hey `
With this patch it now shows `echo "Hey $name"`.

However, because it is very useful for debugging to see the values variables can take,
they are expanded if set.

```
FROM alpine
ENV name=Jude
RUN echo "Hey $name"
```

Building the above Dockerfile makes the RUN command show: `echo "Hey Jude"`.

Signed-off-by: Tibor Vass <tibor@docker.com>
2018-10-03 02:41:51 +00:00
..
envVarTest Handle multi-digit positional parameters 2018-06-01 20:10:13 -07:00
equal_env_unix.go Add description about Unix 2018-07-01 00:08:35 +09:00
equal_env_windows.go Add description about Unix 2018-07-01 00:08:35 +09:00
lex.go dockerfile: RUN's CustomName no longer consume quotes and only replaces environment variables if set 2018-10-03 02:41:51 +00:00
lex_test.go dockerfile: RUN's CustomName no longer consume quotes and only replaces environment variables if set 2018-10-03 02:41:51 +00:00
wordsTest Move builder shell parser into subpackage 2018-06-01 20:10:13 -07:00