1BEGIN { 2 FS="@"; 3 n = 0; 4 printf ("# Generated Spencer ERE Test\n"); 5 printf ("failures=0\n"); 6} 7 8$0 ~ /^#/ { next; } 9 10NF == 3 {
| 1BEGIN { 2 FS="@"; 3 n = 0; 4 printf ("# Generated Spencer ERE Test\n"); 5 printf ("failures=0\n"); 6} 7 8$0 ~ /^#/ { next; } 9 10NF == 3 {
|
11 printf ("status=`echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; }`\n",$3, $2);
| 11# printf ("status=`echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; }`\n",$3, $2); 12 printf ("status=`echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; }`\n",$3, $2);
|
12 printf ("if test $status -ne %s ; then\n", $1); 13 printf ("\techo Spencer ere test \\#%d failed\n", ++n); 14 printf ("\tfailures=1\n"); 15 printf ("fi\n"); 16} 17 18NF == 4 { 19# don't alarm the user for now
--- 12 unchanged lines hidden --- | 13 printf ("if test $status -ne %s ; then\n", $1); 14 printf ("\techo Spencer ere test \\#%d failed\n", ++n); 15 printf ("\tfailures=1\n"); 16 printf ("fi\n"); 17} 18 19NF == 4 { 20# don't alarm the user for now
--- 12 unchanged lines hidden --- |