mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
3e1b539e8d
This fix tries to fix the bug reported by #24693 where an empty line after escape will not be stopped by the parser. This fix addresses this issue by stop the parser from continue with an empty line after escape. An additional integration test has been added. This fix fixes #24693. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
15 lines
323 B
Docker
15 lines
323 B
Docker
FROM busybox
|
|
|
|
# The following will create two instructions
|
|
# `Run foo`
|
|
# `bar`
|
|
# because empty line will break the escape.
|
|
# The parser will generate the following:
|
|
# (from "busybox")
|
|
# (run "foo")
|
|
# (bar "")
|
|
# And `bar` will return an error instruction later
|
|
# Note: Parse() will not immediately error out.
|
|
RUN foo \
|
|
|
|
bar
|