3a58a22a0b
This is both reasonable and a common GNUism that a lot of ported software expects. Universally process \r, \n, and \t into carriage return, newline, and tab respectively. Newline still doesn't function in contexts where it can't (e.g. BRE), but we process it anyways rather than passing UB \n (escaped ordinary) through to the underlying regex engine. Adding a --posix flag to disable these was considered, but sed.1 already declares this version of sed a super-set of POSIX specification and this behavior is the most likely expected when one attempts to use one of these escape sequences in pattern space. This differs from pre-r197362 behavior in that we now honor the three arguably most common escape sequences used with sed(1) and we do so outside of character classes, too. Other escape sequences, like \s and \S, will come later when GNU extensions are added to libregex; sed will likely link against libregex by default, since the GNU extensions tend to be fairly un-intrusive. PR: 229925 Reviewed by: bapt, emaste, pfg Differential Revision: https://reviews.freebsd.org/D22750 |
||
---|---|---|
.. | ||
1.1 | ||
1.2 | ||
1.3 | ||
1.4 | ||
1.4.1 | ||
1.5 | ||
1.6 | ||
1.7 | ||
1.8 | ||
1.9 | ||
1.10 | ||
1.11 | ||
1.12 | ||
1.13 | ||
1.14 | ||
1.15 | ||
1.16 | ||
1.17 | ||
1.18 | ||
2.1 | ||
2.2 | ||
2.3 | ||
2.4 | ||
2.5 | ||
2.6 | ||
2.7 | ||
2.8 | ||
2.9 | ||
2.10 | ||
2.11 | ||
2.12 | ||
2.13 | ||
2.14 | ||
2.15 | ||
2.16 | ||
2.17 | ||
2.18 | ||
2.19 | ||
2.20 | ||
2.21 | ||
2.22 | ||
2.23 | ||
3.1 | ||
3.2 | ||
3.3 | ||
3.4 | ||
4.1 | ||
4.2 | ||
4.3 | ||
4.4 | ||
4.5 | ||
4.6 | ||
4.7 | ||
4.8 | ||
5.1 | ||
5.2 | ||
5.3 | ||
5.4 | ||
5.5 | ||
5.6 | ||
5.7 | ||
5.8 | ||
6.1 | ||
6.2 | ||
6.3 | ||
6.4 | ||
6.5 | ||
6.6 | ||
7.1 | ||
7.2 | ||
7.3 | ||
7.4 | ||
7.5 | ||
7.6 | ||
7.7 | ||
7.8 | ||
8.1 | ||
8.2 | ||
8.3 | ||
8.4 | ||
8.5 | ||
8.6 | ||
8.7 | ||
8.8 | ||
8.9 | ||
8.10 | ||
8.11 | ||
8.12 | ||
8.13 | ||
8.14 | ||
8.15 | ||
8.16 | ||
8.17 | ||
8.18 | ||
8.19 | ||
8.20 | ||
8.21 | ||
8.22 | ||
8.23 | ||
9.1 | ||
9.2 | ||
9.3 | ||
9.4 | ||
9.5 | ||
9.6 | ||
9.7 | ||
9.8 | ||
9.9 | ||
9.10 | ||
9.11 | ||
9.12 | ||
9.13 | ||
9.14 | ||
9.15 | ||
9.16 | ||
9.17 | ||
9.18 | ||
9.19 | ||
9.20 | ||
9.21 | ||
9.22 | ||
9.23 | ||
9.24 | ||
9.25 | ||
9.26 | ||
9.27 | ||
9.28 | ||
9.29 | ||
9.30 | ||
9.31 | ||
Makefile | ||
Makefile.depend |