Revert r337419.
The fix is only partial and causes an asymmetry which breaks a test in multi_test.sh. We should consider both parts of the issue found in OpenBSD[1], but for now just revert the change. [1] http://undeadly.org/cgi?action=article;sid=20180728110010 Reported by: asomers
This commit is contained in:
parent
b5bdd5a3db
commit
5d437294cc
@ -393,11 +393,11 @@ compile_delimited(char *p, char *d, int is_tr)
|
|||||||
if ((d = compile_ccl(&p, d)) == NULL)
|
if ((d = compile_ccl(&p, d)) == NULL)
|
||||||
errx(1, "%lu: %s: unbalanced brackets ([])", linenum, fname);
|
errx(1, "%lu: %s: unbalanced brackets ([])", linenum, fname);
|
||||||
continue;
|
continue;
|
||||||
} else if (*p == '\\' && p[1] == c) {
|
|
||||||
p++;
|
|
||||||
} else if (*p == '\\' && p[1] == '[') {
|
} else if (*p == '\\' && p[1] == '[') {
|
||||||
*d++ = *p++;
|
*d++ = *p++;
|
||||||
} else if (*p == '\\' && p[1] == 'n') {
|
} else if (*p == '\\' && p[1] == c)
|
||||||
|
p++;
|
||||||
|
else if (*p == '\\' && p[1] == 'n') {
|
||||||
*d++ = '\n';
|
*d++ = '\n';
|
||||||
p += 2;
|
p += 2;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user