[hackers] [sbase] TODO: add replacement bug reported for ed || Hiltjo Posthuma
commit 0a82a7d91a039b41f861e399a74da8f7073ed59f
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Sun Oct 29 17:48:13 2023 +0100
Commit: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
CommitDate: Sun Oct 29 17:48:13 2023 +0100
TODO: add replacement bug reported for ed
Also reported on IRC:
"escaping the delimiter in replacement fails also: s/./\//"
diff --git a/TODO b/TODO
index 3b60785..a78cf8b 100644
--- a/TODO
+++ b/TODO
_AT_@ -55,6 +55,19 @@ ed
.
1g/^$/p
* Editing huge files doesn't work well.
+* Escaping newlines in replacement doesn't work well:
+ % /bin/ed
+ i
+ foobar
+ .
+ s/foo/&\
+ ->
+ ->bar
+ ,p
+ foo
+ ->bar
+ Q
+
printf
------
Received on Sun Oct 29 2023 - 17:48:51 CET
This archive was generated by hypermail 2.3.0
: Sun Oct 29 2023 - 18:00:36 CET