emersion / emersion/mrsh

bug in heredoc parser wrt apostrophes

Open
#153 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
C
Stars
531
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Trying to use `mrsh` as shell to run [`mksh/Build.sh`](http://www.mirbsd.org/cvs.cgi/src/bin/mksh/Build.sh?rev=HEAD) with fails.

MWE:

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

Fails with:

syntax error: expected 'fi'

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.