#!/bin/sh
ls -1 *.c > /tmp/tests.$$
ecce /tmp/tests.$$ <<EOF
(rli=../c =nr0ahr0i. > .hr0f-1/.c/s/.new/m)0
%C
EOF
sh < /tmp/tests.$$
rm -f /tmp/tests.$$
cat > /tmp/ecc.$$ <<EOD
f/      PROC  /l0k-0
%C
EOD
ls -1 *.new > /tmp/tests.$$
ecce /tmp/tests.$$ <<EOF
(rli=ecce =r0i= < /tmp/ecc.$$=m)0
%C
EOF
sh < /tmp/tests.$$
ecce /tmp/tests.$$<<EOF
(f/ecce /s/diff /f1/</e0l0t/ /nr0ahr0i/ /hr0f-/new/s/out/m)0
%C
EOF
cat /tmp/tests.$$
rm -f /tmp/tests.$$ /tmp/ecc.$$
