This also adds more tests to help verify this, including unicode and nonprintable characters (hence the earlier commit switching to strconv.Quote). As a bonus, this fixes a subtle bug where [] was turned into [""] and then turned back into [] (and thus [""] was impossible to actually round-trip correctly in a Dockerfile). Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com> Upstream-commit: 05c2d2db9a95266217a639e2109be6fc6482a716 Component: engine
9 lines
156 B
Docker
9 lines
156 B
Docker
CMD []
|
|
CMD [""]
|
|
CMD ["a"]
|
|
CMD ["a","b"]
|
|
CMD [ "a", "b" ]
|
|
CMD [ "a", "b" ]
|
|
CMD [ "a", "b" ]
|
|
CMD ["abc 123", "♥", "☃", "\" \\ \/ \b \f \n \r \t \u0000"]
|