GNU bug report logs - #47281
sed: problem with hex replace a literal '$'

Previous Next

Package: sed;

Reported by: Bastian Bittorf <bb <at> npl.de>

Date: Sat, 20 Mar 2021 13:51:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Nora Platiel <nplatiel <at> gmx.us>
To: 47281 <at> debbugs.gnu.org
Subject: bug#47281: sed: problem with hex replace a literal '$'
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





This bug report was last modified 4 years and 86 days ago.

Previous Next


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