Commit 147df70
authored
ed: avoid literal newline in s/// (briandfoy#917)
* Yesterday when editing a file I discovered the escape sequence "\n" was expanded to a newline when used in a substitution command
* This has the unintended result of updating one or more elements of the lines-list to contain multiple newline characters
* GNU and OpenBSD versions treat "\n" as a regular "n"; follow this for compatibility, and to avoid the problem of line x containing many lines1 parent ce74886 commit 147df70
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
553 | | - | |
| 553 | + | |
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
| |||
0 commit comments