35c35
< __FBSDID("$FreeBSD: head/usr.bin/sed/compile.c 197356 2009-09-20 14:11:33Z dds $");
---
> __FBSDID("$FreeBSD: head/usr.bin/sed/compile.c 197361 2009-09-20 15:17:40Z dds $");
69c69
< static char *compile_delimited(char *, char *);
---
> static char *compile_delimited(char *, char *, int);
323c323
< p = compile_delimited(p, re);
---
> p = compile_delimited(p, re, 0);
376c376
< compile_delimited(char *p, char *d)
---
> compile_delimited(char *p, char *d, int is_tr)
402,404c402,407
< } else if (*p == '\\' && p[1] == '\\')
< *d++ = *p++;
< else if (*p == c) {
---
> } else if (*p == '\\' && p[1] == '\\') {
> if (is_tr)
> p++;
> else
> *d++ = *p++;
> } else if (*p == c) {
657c660
< p = compile_delimited(p, old);
---
> p = compile_delimited(p, old, 1);
661c664
< p = compile_delimited(p - 1, new);
---
> p = compile_delimited(p - 1, new, 1);
784c787
< p = compile_delimited(p, re);
---
> p = compile_delimited(p, re, 0);
< __FBSDID("$FreeBSD: head/usr.bin/sed/compile.c 197356 2009-09-20 14:11:33Z dds $");
---
> __FBSDID("$FreeBSD: head/usr.bin/sed/compile.c 197361 2009-09-20 15:17:40Z dds $");
69c69
< static char *compile_delimited(char *, char *);
---
> static char *compile_delimited(char *, char *, int);
323c323
< p = compile_delimited(p, re);
---
> p = compile_delimited(p, re, 0);
376c376
< compile_delimited(char *p, char *d)
---
> compile_delimited(char *p, char *d, int is_tr)
402,404c402,407
< } else if (*p == '\\' && p[1] == '\\')
< *d++ = *p++;
< else if (*p == c) {
---
> } else if (*p == '\\' && p[1] == '\\') {
> if (is_tr)
> p++;
> else
> *d++ = *p++;
> } else if (*p == c) {
657c660
< p = compile_delimited(p, old);
---
> p = compile_delimited(p, old, 1);
661c664
< p = compile_delimited(p - 1, new);
---
> p = compile_delimited(p - 1, new, 1);
784c787
< p = compile_delimited(p, re);
---
> p = compile_delimited(p, re, 0);