mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![Matt Rickard](/assets/img/avatar_default.png)
Moves builder/shell_parser and into its own subpackage at builder/shell since it has no dependencies other than the standard library. This will make it much easier to vendor for downstream libraries, without pulling all the dependencies of builder/. Fixes #36154 Signed-off-by: Matt Rickard <mrick@google.com>
30 lines
915 B
Text
30 lines
915 B
Text
hello | hello
|
|
hello${hi}bye | hellobye
|
|
ENV hi=hi
|
|
hello${hi}bye | hellohibye
|
|
ENV space=abc def
|
|
hello${space}bye | helloabc,defbye
|
|
hello"${space}"bye | helloabc defbye
|
|
hello "${space}"bye | hello,abc defbye
|
|
ENV leading= ab c
|
|
hello${leading}def | hello,ab,cdef
|
|
hello"${leading}" def | hello ab c,def
|
|
hello"${leading}" | hello ab c
|
|
hello${leading} | hello,ab,c
|
|
# next line MUST have 3 trailing spaces, don't erase them!
|
|
ENV trailing=ab c
|
|
hello${trailing} | helloab,c
|
|
hello${trailing}d | helloab,c,d
|
|
hello"${trailing}"d | helloab c d
|
|
# next line MUST have 3 trailing spaces, don't erase them!
|
|
hel"lo${trailing}" | helloab c
|
|
hello" there " | hello there
|
|
hello there | hello,there
|
|
hello\ there | hello there
|
|
hello" there | error
|
|
hello\" there | hello",there
|
|
hello"\\there" | hello\there
|
|
hello"\there" | hello\there
|
|
hello'\\there' | hello\\there
|
|
hello'\there' | hello\there
|
|
hello'$there' | hello$there
|