bug-sed
[Top][All Lists]
Advanced

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

bug#23493: gnu sed word replace bug


From: Jim Meyering
Subject: bug#23493: gnu sed word replace bug
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 <address@hidden> wrote:
> On Tue, 10 May 2016 01:02:35 +0800, xingzx <address@hidden> 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.





reply via email to

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