summaryrefslogtreecommitdiff
path: root/bin/ed
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2020-01-09 18:34:09 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2020-01-09 18:34:09 +0000
commitabf98c123808155e14a6f11ff03360a4d4dc7c9f (patch)
tree95c666c1923dda1de605cd451af47ea4a0427b98 /bin/ed
parentaebe2d97422ebb8a9eaa1ce8234e07a699207e6b (diff)
Rev 1.17 of sub.c removed infinite loop detection from s command.
Adapt substitute test to new ed(1) behavior. Note that substitute result from sed(1) is still different.
Diffstat (limited to 'bin/ed')
-rw-r--r--bin/ed/test/s2.err4
-rw-r--r--bin/ed/test/s4.d1
-rw-r--r--bin/ed/test/s4.r1
-rw-r--r--bin/ed/test/s4.t1
4 files changed, 3 insertions, 4 deletions
diff --git a/bin/ed/test/s2.err b/bin/ed/test/s2.err
deleted file mode 100644
index b5c851df7b2..00000000000
--- a/bin/ed/test/s2.err
+++ /dev/null
@@ -1,4 +0,0 @@
-a
-a
-.
-s/x*/a/g
diff --git a/bin/ed/test/s4.d b/bin/ed/test/s4.d
new file mode 100644
index 00000000000..78981922613
--- /dev/null
+++ b/bin/ed/test/s4.d
@@ -0,0 +1 @@
+a
diff --git a/bin/ed/test/s4.r b/bin/ed/test/s4.r
new file mode 100644
index 00000000000..86ae29c8445
--- /dev/null
+++ b/bin/ed/test/s4.r
@@ -0,0 +1 @@
+ba
diff --git a/bin/ed/test/s4.t b/bin/ed/test/s4.t
new file mode 100644
index 00000000000..5e4fe76385b
--- /dev/null
+++ b/bin/ed/test/s4.t
@@ -0,0 +1 @@
+s/x*/b/g