emersion / mrsh

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

bug in heredoc parser wrt apostrophes #153

Open mirabilos opened 4 years ago

mirabilos commented 4 years ago

Trying to use mrsh as shell to run mksh/Build.sh with fails.

MWE:

if true; then
        echo one
else
        cat <<'EOF'
/* apo'stroph */
EOF
        #'
fi

Fails with:

syntax error: expected 'fi'