chadbraunduin / markdown.bash

A Markdown interpreter using only traditional Unix tools
182 stars 45 forks source link

Passing string as input raises "sed: unsupported command e" on Alpine #15

Open adnan360 opened 3 years ago

adnan360 commented 3 years ago

I tried something like this on a GitLab build based on Alpine Linux:

BODY_SOURCE=$(echo "$BODY_SOURCE" | sh inc/markdown.bash/markdown.sh /dev/stdin)

It works on a Void Linux machine just fine, but not on Alpine. It gave me a:

sed: unsupported command e

It seems to be doing this on this line of markdown.sh:

while grep '^[\*\+\-] ' "$temp_file" >/dev/null
escoand commented 1 month ago

Had the same problem. The solution is to install a full sed with apk add sed.