bug-sed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: bill-auger
Subject: bug#32592: s with i modifier seems to work incorrectly
Date: Thu, 30 Aug 2018 14:27:23 +0000

On Thu, 30 Aug 2018 17:31:29 +0900
Saito Takaaki <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]