Commit 92d8b42
committed
fix(gnokii): use double \\ in [...] for POSIX.1-2024 recommendation
Currently, in POSIX-bracket expressions [...] in the POSIX sed regular
expressions, a backslash is treated literally, i.e., a single
backslash is enough to include it in the set of characters. However,
according to a newly added paragraph "APPLICATION USAGE/p5 - sed -
POSIX Issue 8 XCU", POSIX may allow implementations to interpret
backslashes in bracket expressions bracket in the future (in a similar
way as POSIX awk processes). It recommends using two backslashes in
bracket expressions for the future compatibility.
https://pubs.opengroup.org/onlinepubs/9799919799/utilities/sed.html#tag_20_109_161 parent cacf97b commit 92d8b42
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| 222 | + | |
| 223 | + | |
222 | 224 | | |
223 | 225 | | |
224 | | - | |
| 226 | + | |
225 | 227 | | |
226 | 228 | | |
227 | 229 | | |
| |||
0 commit comments