TODO: add replacement bug reported for ed - sbase - suckless unix tools | |
git clone git://git.suckless.org/sbase | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0a82a7d91a039b41f861e399a74da8f7073ed59f | |
parent 090490b81d01f4e1da005560669fbb1239c88989 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 29 Oct 2023 17:48:13 +0100 | |
TODO: add replacement bug reported for ed | |
Also reported on IRC: | |
"escaping the delimiter in replacement fails also: s/./\//" | |
Diffstat: | |
M TODO | 13 +++++++++++++ | |
1 file changed, 13 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/TODO b/TODO | |
@@ -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 | |
------ |