GNU bug report logs - #32592
s with i modifier seems to work incorrectly

Previous Next

Package: sed;

Reported by: Saito Takaaki <tails.saito <at> gmail.com>

Date: Thu, 30 Aug 2018 14:44:01 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: bill-auger <bill-auger <at> peers.community>
To: bug-sed <at> gnu.org
Subject: Re: 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 <tails.saito <at> gmail.com> 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




This bug report was last modified 6 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.