mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f440c6b224
If previous line ends with whitespace, or next line starts with whitepsace we need to preserve a space otherwise things line: RUN echo\ hello will appear as: RUN echohello Noticed this while looking at #5744 because he had lines ending in &&\ Signed-off-by: Doug Davis <dug@us.ibm.com>
29 lines
748 B
Text
29 lines
748 B
Text
(from "busybox:buildroot-2014.02")
|
|
(maintainer "docker <docker@docker.io>")
|
|
(onbuild (run "echo" "test"))
|
|
(onbuild (run "echo test"))
|
|
(onbuild (copy "." "/"))
|
|
(run "ls" "-la")
|
|
(run "echo" "'1234'")
|
|
(run "echo \"1234\"")
|
|
(run "echo 1234")
|
|
(run "echo '1234' && echo \"456\" && echo 789")
|
|
(run "sh -c 'echo root:testpass > /tmp/passwd'")
|
|
(run "mkdir -p /test /test2 /test3/test")
|
|
(env "SCUBA" "1 DUBA 3")
|
|
(env "SCUBA" "\"1 DUBA 3\"")
|
|
(cmd "echo" "test")
|
|
(cmd "echo test")
|
|
(cmd "echo \"test\"")
|
|
(cmd "echo 'test'")
|
|
(cmd "echo 'test' | wc -")
|
|
(expose "3000")
|
|
(expose "9000" "5000" "6000")
|
|
(user "docker")
|
|
(user "docker:root")
|
|
(volume "/test")
|
|
(volume "/test" "/test2")
|
|
(volume "/test3")
|
|
(workdir "/test")
|
|
(add "." "/")
|
|
(copy "." "copy")
|