START bin/ed 2024-11-01T02:09:14Z ==== run-a.ed ==== cp /usr/src/regress/bin/ed/a.t /usr/src/regress/bin/ed/a.d . ( echo "#!/bin/sh -"; echo "rm -f -- a.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r a.d"; cat a.t; echo "w a.o"; echo EOT; ) >a.tmp mv a.tmp a.ed chmod +x a.ed ./a.ed diff -u /usr/src/regress/bin/ed/a.r a.o ==== run-addr.ed ==== cp /usr/src/regress/bin/ed/addr.t /usr/src/regress/bin/ed/addr.d . ( echo "#!/bin/sh -"; echo "rm -f -- addr.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r addr.d"; cat addr.t; echo "w addr.o"; echo EOT; ) >addr.tmp mv addr.tmp addr.ed chmod +x addr.ed ./addr.ed diff -u /usr/src/regress/bin/ed/addr.r addr.o ==== run-ascii.ed ==== cp /usr/src/regress/bin/ed/ascii.t /usr/src/regress/bin/ed/ascii.d . ( echo "#!/bin/sh -"; echo "rm -f -- ascii.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r ascii.d"; cat ascii.t; echo "w ascii.o"; echo EOT; ) >ascii.tmp mv ascii.tmp ascii.ed chmod +x ascii.ed ./ascii.ed diff -u /usr/src/regress/bin/ed/ascii.r ascii.o ==== run-bang1.ed ==== cp /usr/src/regress/bin/ed/bang1.t /usr/src/regress/bin/ed/bang1.d . ( echo "#!/bin/sh -"; echo "rm -f -- bang1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r bang1.d"; cat bang1.t; echo "w bang1.o"; echo EOT; ) >bang1.tmp mv bang1.tmp bang1.ed chmod +x bang1.ed ./bang1.ed diff -u /usr/src/regress/bin/ed/bang1.r bang1.o ==== run-c.ed ==== cp /usr/src/regress/bin/ed/c.t /usr/src/regress/bin/ed/c.d . ( echo "#!/bin/sh -"; echo "rm -f -- c.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r c.d"; cat c.t; echo "w c.o"; echo EOT; ) >c.tmp mv c.tmp c.ed chmod +x c.ed ./c.ed diff -u /usr/src/regress/bin/ed/c.r c.o ==== run-d.ed ==== cp /usr/src/regress/bin/ed/d.t /usr/src/regress/bin/ed/d.d . ( echo "#!/bin/sh -"; echo "rm -f -- d.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r d.d"; cat d.t; echo "w d.o"; echo EOT; ) >d.tmp mv d.tmp d.ed chmod +x d.ed ./d.ed diff -u /usr/src/regress/bin/ed/d.r d.o ==== run-d0.ed ==== cp /usr/src/regress/bin/ed/d0.t /usr/src/regress/bin/ed/d0.d . ( echo "#!/bin/sh -"; echo "rm -f -- d0.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r d0.d"; cat d0.t; echo "w d0.o"; echo EOT; ) >d0.tmp mv d0.tmp d0.ed chmod +x d0.ed ./d0.ed diff -u /usr/src/regress/bin/ed/d0.r d0.o ==== run-d1.ed ==== cp /usr/src/regress/bin/ed/d1.t /usr/src/regress/bin/ed/d1.d . ( echo "#!/bin/sh -"; echo "rm -f -- d1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r d1.d"; cat d1.t; echo "w d1.o"; echo EOT; ) >d1.tmp mv d1.tmp d1.ed chmod +x d1.ed ./d1.ed diff -u /usr/src/regress/bin/ed/d1.r d1.o ==== run-d2.ed ==== cp /usr/src/regress/bin/ed/d2.t /usr/src/regress/bin/ed/d2.d . ( echo "#!/bin/sh -"; echo "rm -f -- d2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r d2.d"; cat d2.t; echo "w d2.o"; echo EOT; ) >d2.tmp mv d2.tmp d2.ed chmod +x d2.ed ./d2.ed diff -u /usr/src/regress/bin/ed/d2.r d2.o ==== run-d3.ed ==== cp /usr/src/regress/bin/ed/d3.t /usr/src/regress/bin/ed/d3.d . ( echo "#!/bin/sh -"; echo "rm -f -- d3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r d3.d"; cat d3.t; echo "w d3.o"; echo EOT; ) >d3.tmp mv d3.tmp d3.ed chmod +x d3.ed ./d3.ed line 2 diff -u /usr/src/regress/bin/ed/d3.r d3.o ==== run-d4.ed ==== cp /usr/src/regress/bin/ed/d4.t /usr/src/regress/bin/ed/d4.d . ( echo "#!/bin/sh -"; echo "rm -f -- d4.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r d4.d"; cat d4.t; echo "w d4.o"; echo EOT; ) >d4.tmp mv d4.tmp d4.ed chmod +x d4.ed ./d4.ed line 2 diff -u /usr/src/regress/bin/ed/d4.r d4.o ==== run-d5.ed ==== cp /usr/src/regress/bin/ed/d5.t /usr/src/regress/bin/ed/d5.d . ( echo "#!/bin/sh -"; echo "rm -f -- d5.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r d5.d"; cat d5.t; echo "w d5.o"; echo EOT; ) >d5.tmp mv d5.tmp d5.ed chmod +x d5.ed ./d5.ed line 4 diff -u /usr/src/regress/bin/ed/d5.r d5.o ==== run-e1.ed ==== cp /usr/src/regress/bin/ed/e1.t /usr/src/regress/bin/ed/e1.d . ( echo "#!/bin/sh -"; echo "rm -f -- e1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r e1.d"; cat e1.t; echo "w e1.o"; echo EOT; ) >e1.tmp mv e1.tmp e1.ed chmod +x e1.ed ./e1.ed diff -u /usr/src/regress/bin/ed/e1.r e1.o ==== run-e2.ed ==== cp /usr/src/regress/bin/ed/e2.t /usr/src/regress/bin/ed/e2.d . ( echo "#!/bin/sh -"; echo "rm -f -- e2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r e2.d"; cat e2.t; echo "w e2.o"; echo EOT; ) >e2.tmp mv e2.tmp e2.ed chmod +x e2.ed ./e2.ed diff -u /usr/src/regress/bin/ed/e2.r e2.o ==== run-e3.ed ==== cp /usr/src/regress/bin/ed/e3.t /usr/src/regress/bin/ed/e3.d . ( echo "#!/bin/sh -"; echo "rm -f -- e3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r e3.d"; cat e3.t; echo "w e3.o"; echo EOT; ) >e3.tmp mv e3.tmp e3.ed chmod +x e3.ed ./e3.ed diff -u /usr/src/regress/bin/ed/e3.r e3.o ==== run-e4.ed ==== cp /usr/src/regress/bin/ed/e4.t /usr/src/regress/bin/ed/e4.d . ( echo "#!/bin/sh -"; echo "rm -f -- e4.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r e4.d"; cat e4.t; echo "w e4.o"; echo EOT; ) >e4.tmp mv e4.tmp e4.ed chmod +x e4.ed ./e4.ed diff -u /usr/src/regress/bin/ed/e4.r e4.o ==== run-g1.ed ==== cp /usr/src/regress/bin/ed/g1.t /usr/src/regress/bin/ed/g1.d . ( echo "#!/bin/sh -"; echo "rm -f -- g1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r g1.d"; cat g1.t; echo "w g1.o"; echo EOT; ) >g1.tmp mv g1.tmp g1.ed chmod +x g1.ed ./g1.ed hello world hello world hello world hello world hello world diff -u /usr/src/regress/bin/ed/g1.r g1.o ==== run-g2.ed ==== cp /usr/src/regress/bin/ed/g2.t /usr/src/regress/bin/ed/g2.d . ( echo "#!/bin/sh -"; echo "rm -f -- g2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r g2.d"; cat g2.t; echo "w g2.o"; echo EOT; ) >g2.tmp mv g2.tmp g2.ed chmod +x g2.ed ./g2.ed diff -u /usr/src/regress/bin/ed/g2.r g2.o ==== run-g3.ed ==== cp /usr/src/regress/bin/ed/g3.t /usr/src/regress/bin/ed/g3.d . ( echo "#!/bin/sh -"; echo "rm -f -- g3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r g3.d"; cat g3.t; echo "w g3.o"; echo EOT; ) >g3.tmp mv g3.tmp g3.ed chmod +x g3.ed ./g3.ed diff -u /usr/src/regress/bin/ed/g3.r g3.o ==== run-g4.ed ==== cp /usr/src/regress/bin/ed/g4.t /usr/src/regress/bin/ed/g4.d . ( echo "#!/bin/sh -"; echo "rm -f -- g4.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r g4.d"; cat g4.t; echo "w g4.o"; echo EOT; ) >g4.tmp mv g4.tmp g4.ed chmod +x g4.ed ./g4.ed diff -u /usr/src/regress/bin/ed/g4.r g4.o ==== run-g5.ed ==== cp /usr/src/regress/bin/ed/g5.t /usr/src/regress/bin/ed/g5.d . ( echo "#!/bin/sh -"; echo "rm -f -- g5.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r g5.d"; cat g5.t; echo "w g5.o"; echo EOT; ) >g5.tmp mv g5.tmp g5.ed chmod +x g5.ed ./g5.ed diff -u /usr/src/regress/bin/ed/g5.r g5.o ==== run-i.ed ==== cp /usr/src/regress/bin/ed/i.t /usr/src/regress/bin/ed/i.d . ( echo "#!/bin/sh -"; echo "rm -f -- i.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r i.d"; cat i.t; echo "w i.o"; echo EOT; ) >i.tmp mv i.tmp i.ed chmod +x i.ed ./i.ed diff -u /usr/src/regress/bin/ed/i.r i.o ==== run-i0.ed ==== cp /usr/src/regress/bin/ed/i0.t /usr/src/regress/bin/ed/i0.d . ( echo "#!/bin/sh -"; echo "rm -f -- i0.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r i0.d"; cat i0.t; echo "w i0.o"; echo EOT; ) >i0.tmp mv i0.tmp i0.ed chmod +x i0.ed ./i0.ed diff -u /usr/src/regress/bin/ed/i0.r i0.o ==== run-j.ed ==== cp /usr/src/regress/bin/ed/j.t /usr/src/regress/bin/ed/j.d . ( echo "#!/bin/sh -"; echo "rm -f -- j.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r j.d"; cat j.t; echo "w j.o"; echo EOT; ) >j.tmp mv j.tmp j.ed chmod +x j.ed ./j.ed diff -u /usr/src/regress/bin/ed/j.r j.o ==== run-k.ed ==== cp /usr/src/regress/bin/ed/k.t /usr/src/regress/bin/ed/k.d . ( echo "#!/bin/sh -"; echo "rm -f -- k.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r k.d"; cat k.t; echo "w k.o"; echo EOT; ) >k.tmp mv k.tmp k.ed chmod +x k.ed ./k.ed diff -u /usr/src/regress/bin/ed/k.r k.o ==== run-l.ed ==== cp /usr/src/regress/bin/ed/l.t /usr/src/regress/bin/ed/l.d . ( echo "#!/bin/sh -"; echo "rm -f -- l.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r l.d"; cat l.t; echo "w l.o"; echo EOT; ) >l.tmp mv l.tmp l.ed chmod +x l.ed ./l.ed diff -u /usr/src/regress/bin/ed/l.r l.o ==== run-m.ed ==== cp /usr/src/regress/bin/ed/m.t /usr/src/regress/bin/ed/m.d . ( echo "#!/bin/sh -"; echo "rm -f -- m.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r m.d"; cat m.t; echo "w m.o"; echo EOT; ) >m.tmp mv m.tmp m.ed chmod +x m.ed ./m.ed diff -u /usr/src/regress/bin/ed/m.r m.o ==== run-n.ed ==== cp /usr/src/regress/bin/ed/n.t /usr/src/regress/bin/ed/n.d . ( echo "#!/bin/sh -"; echo "rm -f -- n.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r n.d"; cat n.t; echo "w n.o"; echo EOT; ) >n.tmp mv n.tmp n.ed chmod +x n.ed ./n.ed diff -u /usr/src/regress/bin/ed/n.r n.o ==== run-nl1.ed ==== cp /usr/src/regress/bin/ed/nl1.t /usr/src/regress/bin/ed/nl1.d . ( echo "#!/bin/sh -"; echo "rm -f -- nl1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r nl1.d"; cat nl1.t; echo "w nl1.o"; echo EOT; ) >nl1.tmp mv nl1.tmp nl1.ed chmod +x nl1.ed ./nl1.ed line 1 line 2 line 3 diff -u /usr/src/regress/bin/ed/nl1.r nl1.o ==== run-nl2.ed ==== cp /usr/src/regress/bin/ed/nl2.t /usr/src/regress/bin/ed/nl2.d . ( echo "#!/bin/sh -"; echo "rm -f -- nl2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r nl2.d"; cat nl2.t; echo "w nl2.o"; echo EOT; ) >nl2.tmp mv nl2.tmp nl2.ed chmod +x nl2.ed ./nl2.ed line 1 diff -u /usr/src/regress/bin/ed/nl2.r nl2.o ==== run-p.ed ==== cp /usr/src/regress/bin/ed/p.t /usr/src/regress/bin/ed/p.d . ( echo "#!/bin/sh -"; echo "rm -f -- p.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r p.d"; cat p.t; echo "w p.o"; echo EOT; ) >p.tmp mv p.tmp p.ed chmod +x p.ed ./p.ed diff -u /usr/src/regress/bin/ed/p.r p.o ==== run-q.ed ==== cp /usr/src/regress/bin/ed/q.t /usr/src/regress/bin/ed/q.d . ( echo "#!/bin/sh -"; echo "rm -f -- q.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r q.d"; cat q.t; echo "w q.o"; echo EOT; ) >q.tmp mv q.tmp q.ed chmod +x q.ed ./q.ed diff -u /usr/src/regress/bin/ed/q.r q.o ==== run-r1.ed ==== cp /usr/src/regress/bin/ed/r1.t /usr/src/regress/bin/ed/r1.d . ( echo "#!/bin/sh -"; echo "rm -f -- r1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r r1.d"; cat r1.t; echo "w r1.o"; echo EOT; ) >r1.tmp mv r1.tmp r1.ed chmod +x r1.ed ./r1.ed line 1 diff -u /usr/src/regress/bin/ed/r1.r r1.o ==== run-r2.ed ==== cp /usr/src/regress/bin/ed/r2.t /usr/src/regress/bin/ed/r2.d . ( echo "#!/bin/sh -"; echo "rm -f -- r2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r r2.d"; cat r2.t; echo "w r2.o"; echo EOT; ) >r2.tmp mv r2.tmp r2.ed chmod +x r2.ed ./r2.ed diff -u /usr/src/regress/bin/ed/r2.r r2.o ==== run-r3.ed ==== cp /usr/src/regress/bin/ed/r3.t /usr/src/regress/bin/ed/r3.d . ( echo "#!/bin/sh -"; echo "rm -f -- r3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r r3.d"; cat r3.t; echo "w r3.o"; echo EOT; ) >r3.tmp mv r3.tmp r3.ed chmod +x r3.ed ./r3.ed diff -u /usr/src/regress/bin/ed/r3.r r3.o ==== run-s1.ed ==== cp /usr/src/regress/bin/ed/s1.t /usr/src/regress/bin/ed/s1.d . ( echo "#!/bin/sh -"; echo "rm -f -- s1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s1.d"; cat s1.t; echo "w s1.o"; echo EOT; ) >s1.tmp mv s1.tmp s1.ed chmod +x s1.ed ./s1.ed diff -u /usr/src/regress/bin/ed/s1.r s1.o ==== run-s2.ed ==== cp /usr/src/regress/bin/ed/s2.t /usr/src/regress/bin/ed/s2.d . ( echo "#!/bin/sh -"; echo "rm -f -- s2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s2.d"; cat s2.t; echo "w s2.o"; echo EOT; ) >s2.tmp mv s2.tmp s2.ed chmod +x s2.ed ./s2.ed li(n)e500 i(n)e 200 diff -u /usr/src/regress/bin/ed/s2.r s2.o ==== run-s3.ed ==== cp /usr/src/regress/bin/ed/s3.t /usr/src/regress/bin/ed/s3.d . ( echo "#!/bin/sh -"; echo "rm -f -- s3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s3.d"; cat s3.t; echo "w s3.o"; echo EOT; ) >s3.tmp mv s3.tmp s3.ed chmod +x s3.ed ./s3.ed diff -u /usr/src/regress/bin/ed/s3.r s3.o ==== run-s4.ed ==== cp /usr/src/regress/bin/ed/s4.t /usr/src/regress/bin/ed/s4.d . ( echo "#!/bin/sh -"; echo "rm -f -- s4.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s4.d"; cat s4.t; echo "w s4.o"; echo EOT; ) >s4.tmp mv s4.tmp s4.ed chmod +x s4.ed ./s4.ed diff -u /usr/src/regress/bin/ed/s4.r s4.o ==== run-t.ed ==== cp /usr/src/regress/bin/ed/t.t /usr/src/regress/bin/ed/t.d . ( echo "#!/bin/sh -"; echo "rm -f -- t.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r t.d"; cat t.t; echo "w t.o"; echo EOT; ) >t.tmp mv t.tmp t.ed chmod +x t.ed ./t.ed diff -u /usr/src/regress/bin/ed/t.r t.o ==== run-t1.ed ==== cp /usr/src/regress/bin/ed/t1.t /usr/src/regress/bin/ed/t1.d . ( echo "#!/bin/sh -"; echo "rm -f -- t1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r t1.d"; cat t1.t; echo "w t1.o"; echo EOT; ) >t1.tmp mv t1.tmp t1.ed chmod +x t1.ed ./t1.ed diff -u /usr/src/regress/bin/ed/t1.r t1.o ==== run-t2.ed ==== cp /usr/src/regress/bin/ed/t2.t /usr/src/regress/bin/ed/t2.d . ( echo "#!/bin/sh -"; echo "rm -f -- t2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r t2.d"; cat t2.t; echo "w t2.o"; echo EOT; ) >t2.tmp mv t2.tmp t2.ed chmod +x t2.ed ./t2.ed diff -u /usr/src/regress/bin/ed/t2.r t2.o ==== run-u.ed ==== cp /usr/src/regress/bin/ed/u.t /usr/src/regress/bin/ed/u.d . ( echo "#!/bin/sh -"; echo "rm -f -- u.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r u.d"; cat u.t; echo "w u.o"; echo EOT; ) >u.tmp mv u.tmp u.ed chmod +x u.ed ./u.ed diff -u /usr/src/regress/bin/ed/u.r u.o ==== run-v.ed ==== cp /usr/src/regress/bin/ed/v.t /usr/src/regress/bin/ed/v.d . ( echo "#!/bin/sh -"; echo "rm -f -- v.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r v.d"; cat v.t; echo "w v.o"; echo EOT; ) >v.tmp mv v.tmp v.ed chmod +x v.ed ./v.ed hello world diff -u /usr/src/regress/bin/ed/v.r v.o ==== run-w.ed ==== cp /usr/src/regress/bin/ed/w.t /usr/src/regress/bin/ed/w.d . ( echo "#!/bin/sh -"; echo "rm -f -- w.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r w.d"; cat w.t; echo "w w.o"; echo EOT; ) >w.tmp mv w.tmp w.ed chmod +x w.ed ./w.ed diff -u /usr/src/regress/bin/ed/w.r w.o ==== run-a1.red ==== cp /usr/src/regress/bin/ed/a1.err . ( echo "#!/bin/sh -"; echo "rm -f -- a1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r a1.err"; cat a1.err; echo "w a1.o"; echo EOT; ) >a1.tmp mv a1.tmp a1.red chmod +x a1.red ! ./a1.red *** Error 1 in . (Makefile:54 'run-a1.red') EXPECTED_FAIL ==== run-a2.red ==== cp /usr/src/regress/bin/ed/a2.err . ( echo "#!/bin/sh -"; echo "rm -f -- a2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r a2.err"; cat a2.err; echo "w a2.o"; echo EOT; ) >a2.tmp mv a2.tmp a2.red chmod +x a2.red ! ./a2.red script, line 3: invalid command suffix ? ==== run-addr1.red ==== cp /usr/src/regress/bin/ed/addr1.err . ( echo "#!/bin/sh -"; echo "rm -f -- addr1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r addr1.err"; cat addr1.err; echo "w addr1.o"; echo EOT; ) >addr1.tmp mv addr1.tmp addr1.red chmod +x addr1.red ! ./addr1.red script, line 3: invalid address ? ==== run-addr2.red ==== cp /usr/src/regress/bin/ed/addr2.err . ( echo "#!/bin/sh -"; echo "rm -f -- addr2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r addr2.err"; cat addr2.err; echo "w addr2.o"; echo EOT; ) >addr2.tmp mv addr2.tmp addr2.red chmod +x addr2.red ! ./addr2.red script, line 3: invalid address ? ==== run-bang1.red ==== cp /usr/src/regress/bin/ed/bang1.err . ( echo "#!/bin/sh -"; echo "rm -f -- bang1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r bang1.err"; cat bang1.err; echo "w bang1.o"; echo EOT; ) >bang1.tmp mv bang1.tmp bang1.red chmod +x bang1.red ! ./bang1.red script, line 3: unexpected address ? ==== run-bang2.red ==== cp /usr/src/regress/bin/ed/bang2.err . ( echo "#!/bin/sh -"; echo "rm -f -- bang2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r bang2.err"; cat bang2.err; echo "w bang2.o"; echo EOT; ) >bang2.tmp mv bang2.tmp bang2.red chmod +x bang2.red ! ./bang2.red script, line 3: no previous command ? ==== run-c1.red ==== cp /usr/src/regress/bin/ed/c1.err . ( echo "#!/bin/sh -"; echo "rm -f -- c1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r c1.err"; cat c1.err; echo "w c1.o"; echo EOT; ) >c1.tmp mv c1.tmp c1.red chmod +x c1.red ! ./c1.red script, line 3: invalid command suffix ? ==== run-c2.red ==== cp /usr/src/regress/bin/ed/c2.err . ( echo "#!/bin/sh -"; echo "rm -f -- c2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r c2.err"; cat c2.err; echo "w c2.o"; echo EOT; ) >c2.tmp mv c2.tmp c2.red chmod +x c2.red ! ./c2.red script, line 3: invalid address ? ==== run-d.red ==== cp /usr/src/regress/bin/ed/d.err . ( echo "#!/bin/sh -"; echo "rm -f -- d.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r d.err"; cat d.err; echo "w d.o"; echo EOT; ) >d.tmp mv d.tmp d.red chmod +x d.red ! ./d.red script, line 3: invalid command suffix ? ==== run-e1.red ==== cp /usr/src/regress/bin/ed/e1.err . ( echo "#!/bin/sh -"; echo "rm -f -- e1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r e1.err"; cat e1.err; echo "w e1.o"; echo EOT; ) >e1.tmp mv e1.tmp e1.red chmod +x e1.red ! ./e1.red script, line 3: unexpected command suffix ? ==== run-e2.red ==== cp /usr/src/regress/bin/ed/e2.err . ( echo "#!/bin/sh -"; echo "rm -f -- e2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r e2.err"; cat e2.err; echo "w e2.o"; echo EOT; ) >e2.tmp mv e2.tmp e2.red chmod +x e2.red ! ./e2.red script, line 3: unexpected address ? ==== run-e3.red ==== cp /usr/src/regress/bin/ed/e3.err . ( echo "#!/bin/sh -"; echo "rm -f -- e3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r e3.err"; cat e3.err; echo "w e3.o"; echo EOT; ) >e3.tmp mv e3.tmp e3.red chmod +x e3.red ! ./e3.red script, line 3: unexpected command suffix ? ==== run-eq.red ==== cp /usr/src/regress/bin/ed/eq.err . ( echo "#!/bin/sh -"; echo "rm -f -- eq.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r eq.err"; cat eq.err; echo "w eq.o"; echo EOT; ) >eq.tmp mv eq.tmp eq.red chmod +x eq.red ! ./eq.red 1 *** Error 1 in . (Makefile:54 'run-eq.red') EXPECTED_FAIL ==== run-f1.red ==== cp /usr/src/regress/bin/ed/f1.err . ( echo "#!/bin/sh -"; echo "rm -f -- f1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r f1.err"; cat f1.err; echo "w f1.o"; echo EOT; ) >f1.tmp mv f1.tmp f1.red chmod +x f1.red ! ./f1.red script, line 3: unexpected address ? ==== run-f2.red ==== cp /usr/src/regress/bin/ed/f2.err . ( echo "#!/bin/sh -"; echo "rm -f -- f2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r f2.err"; cat f2.err; echo "w f2.o"; echo EOT; ) >f2.tmp mv f2.tmp f2.red chmod +x f2.red ! ./f2.red script, line 3: unexpected command suffix ? ==== run-g1.red ==== cp /usr/src/regress/bin/ed/g1.err . ( echo "#!/bin/sh -"; echo "rm -f -- g1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r g1.err"; cat g1.err; echo "w g1.o"; echo EOT; ) >g1.tmp mv g1.tmp g1.red chmod +x g1.red ! ./g1.red script, line 3: invalid pattern delimiter ? ==== run-g2.red ==== cp /usr/src/regress/bin/ed/g2.err . ( echo "#!/bin/sh -"; echo "rm -f -- g2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r g2.err"; cat g2.err; echo "w g2.o"; echo EOT; ) >g2.tmp mv g2.tmp g2.red chmod +x g2.red ! ./g2.red script, line 3: no previous pattern ? ==== run-g3.red ==== cp /usr/src/regress/bin/ed/g3.err . ( echo "#!/bin/sh -"; echo "rm -f -- g3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r g3.err"; cat g3.err; echo "w g3.o"; echo EOT; ) >g3.tmp mv g3.tmp g3.red chmod +x g3.red ! ./g3.red script, line 3: invalid pattern delimiter ? ==== run-h.red ==== cp /usr/src/regress/bin/ed/h.err . ( echo "#!/bin/sh -"; echo "rm -f -- h.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r h.err"; cat h.err; echo "w h.o"; echo EOT; ) >h.tmp mv h.tmp h.red chmod +x h.red ! ./h.red script, line 3: unexpected address ? ==== run-i1.red ==== cp /usr/src/regress/bin/ed/i1.err . ( echo "#!/bin/sh -"; echo "rm -f -- i1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r i1.err"; cat i1.err; echo "w i1.o"; echo EOT; ) >i1.tmp mv i1.tmp i1.red chmod +x i1.red ! ./i1.red *** Error 1 in . (Makefile:54 'run-i1.red') EXPECTED_FAIL ==== run-i2.red ==== cp /usr/src/regress/bin/ed/i2.err . ( echo "#!/bin/sh -"; echo "rm -f -- i2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r i2.err"; cat i2.err; echo "w i2.o"; echo EOT; ) >i2.tmp mv i2.tmp i2.red chmod +x i2.red ! ./i2.red script, line 3: invalid command suffix ? ==== run-k1.red ==== cp /usr/src/regress/bin/ed/k1.err . ( echo "#!/bin/sh -"; echo "rm -f -- k1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r k1.err"; cat k1.err; echo "w k1.o"; echo EOT; ) >k1.tmp mv k1.tmp k1.red chmod +x k1.red ! ./k1.red *** Error 1 in . (Makefile:54 'run-k1.red') EXPECTED_FAIL ==== run-k2.red ==== cp /usr/src/regress/bin/ed/k2.err . ( echo "#!/bin/sh -"; echo "rm -f -- k2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r k2.err"; cat k2.err; echo "w k2.o"; echo EOT; ) >k2.tmp mv k2.tmp k2.red chmod +x k2.red ! ./k2.red script, line 3: invalid mark character ? ==== run-k3.red ==== cp /usr/src/regress/bin/ed/k3.err . ( echo "#!/bin/sh -"; echo "rm -f -- k3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r k3.err"; cat k3.err; echo "w k3.o"; echo EOT; ) >k3.tmp mv k3.tmp k3.red chmod +x k3.red ! ./k3.red script, line 3: invalid address ? ==== run-k4.red ==== cp /usr/src/regress/bin/ed/k4.err . ( echo "#!/bin/sh -"; echo "rm -f -- k4.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r k4.err"; cat k4.err; echo "w k4.o"; echo EOT; ) >k4.tmp mv k4.tmp k4.red chmod +x k4.red ! ./k4.red script, line 8: invalid address ? ==== run-m.red ==== cp /usr/src/regress/bin/ed/m.err . ( echo "#!/bin/sh -"; echo "rm -f -- m.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r m.err"; cat m.err; echo "w m.o"; echo EOT; ) >m.tmp mv m.tmp m.red chmod +x m.red ! ./m.red script, line 6: invalid destination ? ==== run-q1.red ==== cp /usr/src/regress/bin/ed/q1.err . ( echo "#!/bin/sh -"; echo "rm -f -- q1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r q1.err"; cat q1.err; echo "w q1.o"; echo EOT; ) >q1.tmp mv q1.tmp q1.red chmod +x q1.red ! ./q1.red script, line 3: unexpected address ? ==== run-r1.red ==== cp /usr/src/regress/bin/ed/r1.err . ( echo "#!/bin/sh -"; echo "rm -f -- r1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r r1.err"; cat r1.err; echo "w r1.o"; echo EOT; ) >r1.tmp mv r1.tmp r1.red chmod +x r1.red ! ./r1.red *** Error 1 in . (Makefile:54 'run-r1.red') EXPECTED_FAIL ==== run-r2.red ==== cp /usr/src/regress/bin/ed/r2.err . ( echo "#!/bin/sh -"; echo "rm -f -- r2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r r2.err"; cat r2.err; echo "w r2.o"; echo EOT; ) >r2.tmp mv r2.tmp r2.red chmod +x r2.red ! ./r2.red a-good-book: No such file or directory script, line 3: cannot open input file ? ==== run-s1.red ==== cp /usr/src/regress/bin/ed/s1.err . ( echo "#!/bin/sh -"; echo "rm -f -- s1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s1.err"; cat s1.err; echo "w s1.o"; echo EOT; ) >s1.tmp mv s1.tmp s1.red chmod +x s1.red ! ./s1.red script, line 3: invalid pattern delimiter ? ==== run-s10.red ==== cp /usr/src/regress/bin/ed/s10.err . ( echo "#!/bin/sh -"; echo "rm -f -- s10.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s10.err"; cat s10.err; echo "w s10.o"; echo EOT; ) >s10.tmp mv s10.tmp s10.red chmod +x s10.red ! ./s10.red script, line 6: unbalanced brackets ([]) ? ==== run-s3.red ==== cp /usr/src/regress/bin/ed/s3.err . ( echo "#!/bin/sh -"; echo "rm -f -- s3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s3.err"; cat s3.err; echo "w s3.o"; echo EOT; ) >s3.tmp mv s3.tmp s3.red chmod +x s3.red ! ./s3.red script, line 3: unbalanced brackets ([]) ? ==== run-s4.red ==== cp /usr/src/regress/bin/ed/s4.err . ( echo "#!/bin/sh -"; echo "rm -f -- s4.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s4.err"; cat s4.err; echo "w s4.o"; echo EOT; ) >s4.tmp mv s4.tmp s4.red chmod +x s4.red ! ./s4.red script, line 3: no match ? ==== run-s5.red ==== cp /usr/src/regress/bin/ed/s5.err . ( echo "#!/bin/sh -"; echo "rm -f -- s5.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s5.err"; cat s5.err; echo "w s5.o"; echo EOT; ) >s5.tmp mv s5.tmp s5.red chmod +x s5.red ! ./s5.red script, line 3: no previous pattern ? ==== run-s6.red ==== cp /usr/src/regress/bin/ed/s6.err . ( echo "#!/bin/sh -"; echo "rm -f -- s6.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s6.err"; cat s6.err; echo "w s6.o"; echo EOT; ) >s6.tmp mv s6.tmp s6.red chmod +x s6.red ! ./s6.red script, line 3: no previous substitution ? ==== run-s7.red ==== cp /usr/src/regress/bin/ed/s7.err . ( echo "#!/bin/sh -"; echo "rm -f -- s7.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s7.err"; cat s7.err; echo "w s7.o"; echo EOT; ) >s7.tmp mv s7.tmp s7.red chmod +x s7.red ! ./s7.red script, line 7: no previous substitution a ? ==== run-s8.red ==== cp /usr/src/regress/bin/ed/s8.err . ( echo "#!/bin/sh -"; echo "rm -f -- s8.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s8.err"; cat s8.err; echo "w s8.o"; echo EOT; ) >s8.tmp mv s8.tmp s8.red chmod +x s8.red ! ./s8.red script, line 6: unbalanced brackets ([]) ? ==== run-s9.red ==== cp /usr/src/regress/bin/ed/s9.err . ( echo "#!/bin/sh -"; echo "rm -f -- s9.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r s9.err"; cat s9.err; echo "w s9.o"; echo EOT; ) >s9.tmp mv s9.tmp s9.red chmod +x s9.red ! ./s9.red script, line 6: unbalanced brackets ([]) ? ==== run-t1.red ==== cp /usr/src/regress/bin/ed/t1.err . ( echo "#!/bin/sh -"; echo "rm -f -- t1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r t1.err"; cat t1.err; echo "w t1.o"; echo EOT; ) >t1.tmp mv t1.tmp t1.red chmod +x t1.red ! ./t1.red script, line 3: destination expected ? ==== run-t2.red ==== cp /usr/src/regress/bin/ed/t2.err . ( echo "#!/bin/sh -"; echo "rm -f -- t2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r t2.err"; cat t2.err; echo "w t2.o"; echo EOT; ) >t2.tmp mv t2.tmp t2.red chmod +x t2.red ! ./t2.red script, line 3: invalid address ? ==== run-u.red ==== cp /usr/src/regress/bin/ed/u.err . ( echo "#!/bin/sh -"; echo "rm -f -- u.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r u.err"; cat u.err; echo "w u.o"; echo EOT; ) >u.tmp mv u.tmp u.red chmod +x u.red ! ./u.red script, line 3: unexpected address ? ==== run-w1.red ==== cp /usr/src/regress/bin/ed/w1.err . ( echo "#!/bin/sh -"; echo "rm -f -- w1.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r w1.err"; cat w1.err; echo "w w1.o"; echo EOT; ) >w1.tmp mv w1.tmp w1.red chmod +x w1.red ! ./w1.red /to/some/far-away/place: No such file or directory script, line 3: cannot open output file ? ==== run-w2.red ==== cp /usr/src/regress/bin/ed/w2.err . ( echo "#!/bin/sh -"; echo "rm -f -- w2.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r w2.err"; cat w2.err; echo "w w2.o"; echo EOT; ) >w2.tmp mv w2.tmp w2.red chmod +x w2.red ! ./w2.red script, line 3: unexpected command suffix ? ==== run-w3.red ==== cp /usr/src/regress/bin/ed/w3.err . ( echo "#!/bin/sh -"; echo "rm -f -- w3.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r w3.err"; cat w3.err; echo "w w3.o"; echo EOT; ) >w3.tmp mv w3.tmp w3.red chmod +x w3.red ! ./w3.red script, line 3: unexpected command suffix ? ==== run-x.red ==== cp /usr/src/regress/bin/ed/x.err . ( echo "#!/bin/sh -"; echo "rm -f -- x.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r x.err"; cat x.err; echo "w x.o"; echo EOT; ) >x.tmp mv x.tmp x.red chmod +x x.red ! ./x.red script, line 3: unexpected address ? ==== run-z.red ==== cp /usr/src/regress/bin/ed/z.err . ( echo "#!/bin/sh -"; echo "rm -f -- z.o"; echo "/bin/ed - <<\EOT"; echo H; echo "r z.err"; cat z.err; echo "w z.o"; echo EOT; ) >z.tmp mv z.tmp z.red chmod +x z.red ! ./z.red script, line 3: invalid address ? XFAIL bin/ed *** Error 1 in . (Makefile:54 'run-a1.red'), *** Error 1 in . (Makefile:54 'run-eq.red'), *** Error 1 in . (Makefile:54 'run-i1.red'), *** Error 1 in . (Makefile:54 'run-k1.red'), *** Error 1 in . (Makefile:54 'run-r1.red')