Subject: Re: bug#23493: gnu sed word replace bug

From: Jim Meyering <[email-masked]>
Date: Mon, 9 May 2016 14:59:07 -0700

tags 23493 notabug
close 23493
done

On Mon, May 9, 2016 at 2:17 PM, Davide Brini <[email-masked]> wrote:
> On Tue, 10 May 2016 01:02:35 +0800, xingzx <[email-masked]> wrote:
...
> No bug, in GNU sed, \< and \> are special and get interpreted, while on
> OSX sed the \ in the \< combination is silently stripped.
> So if you just want to match a literal lesser sign, just use it unescaped
> (and in any case, you surely don't have to escape it in the replacement
> part):
>
> $ echo '<WebCore/DOMElement.h>'| sed -E 's/<WebCore\//<WebKitLegacy\//'
> <WebKitLegacy/DOMElement.h>

Thanks again for responding, Davide.
With the directives above, I've marked this as a non-bug and closed
the auto-created issue.