79475971

Date: 2025-02-28 15:22:00
Score: 1
Natty:
Report link

New lines are not escaped, probably the tests that you are using is printing the output in some other format. Here are two examples that you can try:

FROM alpine

ENV FOO="Hello\nWorld!"

CMD ["sh", "-c", "echo -e ${FOO}"] 

and

FROM alpine

ENV FOO='echo -e "Hello\nWorld!"'

CMD ["sh", "-c", "$FOO"] 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bako