aboutsummaryrefslogtreecommitdiff
path: root/bin/ed/test
diff options
context:
space:
mode:
authorAndrew Moore <alm@FreeBSD.org>1993-06-26 06:47:21 +0000
committerAndrew Moore <alm@FreeBSD.org>1993-06-26 06:47:21 +0000
commit10ca1c6c925d4ce2f2e0a38c45e05b39daeab2be (patch)
treea75d2f4512b2836bcc2e21f718151792e640b67f /bin/ed/test
parent3340e10399b66a98798381d5f8d00468b4b8f18e (diff)
downloadsrc-10ca1c6c925d4ce2f2e0a38c45e05b39daeab2be.tar.gz
src-10ca1c6c925d4ce2f2e0a38c45e05b39daeab2be.zip
fixed undo within a global command (would corrupt the buffer)
changed move within a global to behave as in SunOS added a couple error messages
Notes
Notes: svn path=/head/; revision=49
Diffstat (limited to 'bin/ed/test')
-rw-r--r--bin/ed/test/g3.d5
-rw-r--r--bin/ed/test/g3.r5
-rw-r--r--bin/ed/test/g3.t4
-rw-r--r--bin/ed/test/g4.d5
-rw-r--r--bin/ed/test/g4.r7
-rw-r--r--bin/ed/test/g4.t13
6 files changed, 39 insertions, 0 deletions
diff --git a/bin/ed/test/g3.d b/bin/ed/test/g3.d
new file mode 100644
index 000000000000..92f337e977f2
--- /dev/null
+++ b/bin/ed/test/g3.d
@@ -0,0 +1,5 @@
+line 1
+line 2
+line 3
+line 4
+line5
diff --git a/bin/ed/test/g3.r b/bin/ed/test/g3.r
new file mode 100644
index 000000000000..cc6fbddec23b
--- /dev/null
+++ b/bin/ed/test/g3.r
@@ -0,0 +1,5 @@
+linc 3
+xine 1
+xine 2
+xinc 4
+xinc5
diff --git a/bin/ed/test/g3.t b/bin/ed/test/g3.t
new file mode 100644
index 000000000000..2d052a6e840d
--- /dev/null
+++ b/bin/ed/test/g3.t
@@ -0,0 +1,4 @@
+g/./s//x/\
+3m0
+g/./s/e/c/\
+2,3m1
diff --git a/bin/ed/test/g4.d b/bin/ed/test/g4.d
new file mode 100644
index 000000000000..92f337e977f2
--- /dev/null
+++ b/bin/ed/test/g4.d
@@ -0,0 +1,5 @@
+line 1
+line 2
+line 3
+line 4
+line5
diff --git a/bin/ed/test/g4.r b/bin/ed/test/g4.r
new file mode 100644
index 000000000000..350882d82375
--- /dev/null
+++ b/bin/ed/test/g4.r
@@ -0,0 +1,7 @@
+hello
+zine 1
+line 2
+line 3
+line 4
+line5
+world
diff --git a/bin/ed/test/g4.t b/bin/ed/test/g4.t
new file mode 100644
index 000000000000..ec618166cc37
--- /dev/null
+++ b/bin/ed/test/g4.t
@@ -0,0 +1,13 @@
+g/./s/./x/\
+u\
+s/./y/\
+u\
+s/./z/\
+u
+u
+0a
+hello
+.
+$a
+world
+.