Subject: Bug when changing and adding line

From: Mohamed Akram <[email-masked]>
Date: Tue, 18 Sep 2018 21:55:30 +0000

Hi,

Given the following command:

echo foo | sed '{
c\
bar
a\
baz
}'

GNU sed 4.4 prints:

bar

Expected (and on macOS):

bar
baz

Regards,
Mohamed