2 # This script generates ed test scripts (.ed) from .t files
5 PATH="/bin:/usr/bin:/usr/local/bin/:."
7 [ ! -x $ED ] && { echo "$ED: cannot execute"; exit 1; }
11 # base=`echo $i | sed 's/\..*//'`
12 # base=`expr $i : '\([^.]*\)'`
22 # The following is pretty ugly way of doing the above, and not appropriate
23 # use of ed but the point is that it can be done...
24 base=`$ED - \!"echo $i" <<-EOF
44 # base=`echo $i | sed 's/\..*//'`
45 # base=`expr $i : '\([^.]*\)'`
55 # chmod +x $base-err.ed
56 # The following is pretty ugly way of doing the above, and not appropriate
57 # use of ed but the point is that it can be done...
58 base=`$ED - \!"echo $i" <<-EOF