Subject: Re: bug#32592: s with i modifier seems to work incorrectly

From: bill-auger <[email-masked]>
Date: Thu, 30 Aug 2018 14:27:23 +0000

On Thu, 30 Aug 2018 17:31:29 +0900
Saito Takaaki <[email-masked]> wrote:
> Assuming the following Bash command as an example:
>     echo abcdefghijkl | sed 'h;G;s/\(a.*\).*\1/(\1)/i'
> the expected output is:
>     (abcdefghijkl)
> However, the actual output is [1][2]:
>     (abcdefg)hijkl

np with GNU sed 4.5 on parabola (archlinux)

$ echo abcdefghijkl | sed 'h;G;s/\(a.*\).*\1/(\1)/i'
(abcdefghijkl)

$ sed --version
sed (GNU sed) 4.5