Subject: bug#47281: sed: problem with hex replace a literal '$'

From: Nora Platiel <[email-masked]>
Date: Sat, 20 Mar 2021 18:06:05 +0100

Hello,
the behavior you are describing is documented here:
https://www.gnu.org/software/sed/manual/sed.html#Escaping-Precedence
If you want to produce a basic regular expression given a string to be matched literally, precede any of $*.[\]^ with \
Likewise, if you are using hex escapes (\xHH), precede any of \x24 \x2a \x2e \x5b \x5c \x5d \x5e with \x5c