-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1559 from thaJeztah/fix_trailing_escape
Dockerfile: fix parsing of trailing backslash
- Loading branch information
Showing
4 changed files
with
42 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
frontend/dockerfile/parser/testfiles/trailing-backslash/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# https://github.com/docker/for-win/issues/5254 | ||
|
||
FROM hello-world | ||
|
||
ENV A path | ||
ENV B another\\path | ||
ENV C trailing\\backslash\\ | ||
ENV D This should not be appended to C | ||
ENV E hello\ | ||
\ | ||
world | ||
ENV F hello\ | ||
\ | ||
world | ||
ENV G hello \ | ||
\ | ||
world |
8 changes: 8 additions & 0 deletions
8
frontend/dockerfile/parser/testfiles/trailing-backslash/result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
(from "hello-world") | ||
(env "A" "path") | ||
(env "B" "another\\\\path") | ||
(env "C" "trailing\\\\backslash\\\\") | ||
(env "D" "This should not be appended to C") | ||
(env "E" "helloworld") | ||
(env "F" "hello world") | ||
(env "G" "hello world") |