markdown.bash icon indicating copy to clipboard operation
markdown.bash copied to clipboard

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

Open adnan360 opened this issue 4 years ago • 1 comments

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

adnan360 avatar Jan 12 '21 06:01 adnan360

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

escoand avatar Aug 08 '24 10:08 escoand