emersion / mrsh

A minimal POSIX shell
MIT License
489 stars 35 forks source link

newline after EOF inside function causes syntax error #188

Open illiliti opened 3 years ago

illiliti commented 3 years ago

sample:

_test()
{
    : << EOF
EOF
    # mrsh works fine if you remove this line
}

output:

test.sh:5:46: syntax error: expected '}'