Added tests: \n[12].[drt] [ik]3.err
This commit is contained in:
parent
0b6b478b03
commit
0a3cfcaa6e
|
@ -19,9 +19,8 @@ done >errs.o 2>&1
|
|||
# Run the remainding scripts; they exit with zero status
|
||||
for i in *.ed; do
|
||||
base=`echo $i | sed 's/\..*//'`
|
||||
# base=`$ED - <<-EOF
|
||||
# r !echo $i
|
||||
# s/\..*
|
||||
# base=`$ED - \!"echo \\\\$i" <<-EOF
|
||||
# s/\..*
|
||||
# EOF`
|
||||
if $base.ed; then
|
||||
if cmp -s $base.o $base.r; then :; else
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
1d
|
||||
2,3d
|
||||
2;+1d
|
||||
$d
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
0i
|
||||
hello world
|
||||
.
|
|
@ -0,0 +1 @@
|
|||
0ka
|
|
@ -18,21 +18,20 @@ for i in *.t; do
|
|||
chmod +x $base.ed
|
||||
# The following is pretty ugly and not appropriate use of ed
|
||||
# but the point is that it can be done...
|
||||
# base=`$ED - <<-EOF
|
||||
# r !echo "$i"
|
||||
# s/\..*
|
||||
# base=`$ED - \!"echo \\\\$i" <<-EOF
|
||||
# s/\..*
|
||||
# EOF`
|
||||
# $ED - <<-EOF
|
||||
# a
|
||||
# #!/bin/sh -
|
||||
# $ED - <<\EOT
|
||||
# r \\$base.d
|
||||
# w \\$base.o
|
||||
# EOT
|
||||
# .
|
||||
# -2r \\$i
|
||||
# w \\$base.ed
|
||||
# !chmod +x \\$base.ed
|
||||
# a
|
||||
# #!/bin/sh -
|
||||
# $ED - <<\EOT
|
||||
# r \\$base.d
|
||||
# w \\$base.o
|
||||
# EOT
|
||||
# .
|
||||
# -2r \\$i
|
||||
# w \\$base.ed
|
||||
# !chmod +x \\$base.ed
|
||||
# EOF
|
||||
done
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
line 1
|
||||
line 2
|
||||
line 3
|
||||
|
||||
|
||||
hello world
|
||||
line 4
|
||||
line5
|
||||
|
|
|
@ -2,5 +2,7 @@
|
|||
|
||||
|
||||
a
|
||||
|
||||
|
||||
hello world
|
||||
.
|
||||
|
|
Loading…
Reference in New Issue