Skip to content

allow space before heredoc name #5778

Open
@kasperk81

Description

@kasperk81

in bash, this is allowed:

cat <<       EOF      > /tmp/afile       
  stuff
  more stuff
EOF

Dockerfile are quite pedantic about no space between << and name EOF, otherwise it gives a very confusing syntax error on next line which leads user to think if heredocs are supported, then the follow up google search makes things more confusing... looks to be a simple case of a missing \s* in heredoc parser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions