Debian Patches

Status for txt2regex/0.9-5

Patch Description Author Forwarded Bugs Origin Last update
fix-TEXTDOMAINDIR.diff no
clitest_and_txt2tags_from_debian.diff no
clitest-show-progress.diff no
de_DE-typo.diff no
f88d45156ee20c1cdb1e70cb410a4d188a384341.patch [PATCH] Use quotes around $escape_metachar in escCharList
The expression uin="${uin/\\/$escape_metachar$escape_metachar}" has
different output on bash 5.2 then on earlier versions. Namely,
$escape_metachar is not treated as a string literal, so the escape
characters are applied which results in half as many escape chars in the
output:

$ bash --version | head -1
GNU bash, version 5.2.0(1)-rc2 (x86_64-pc-linux-gnu)
$ uin='[\]'; escape_metachar='\\'; echo ${uin/\\/$escape_metachar$escape_metachar}
[\\]

vs.

$ bash --version | head -1
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
$ uin='[\]'; escape_metachar='\\'; echo ${uin/\\/$escape_metachar$escape_metachar}
[\\\\]

To fix this, add quotes around $escape_metachar in this substitution,
which works on bash 5.2 as well as earlier versions:

$ bash --version | head -1
GNU bash, version 5.2.0(1)-rc2 (x86_64-pc-linux-gnu)
$ uin='[\]'; escape_metachar='\\'; echo ${uin/\\/"$escape_metachar$escape_metachar"}
[\\\\]

and

$ bash --version | head -1
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
$ uin='[\]'; escape_metachar='\\'; echo ${uin/\\/"$escape_metachar$escape_metachar"}
[\\\\]
Nick Rosbrook <nick.rosbrook@canonical.com> no 2022-09-01

All known versions for source package 'txt2regex'

Links