11 printf ("echo '%s' | ${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2); 12 printf ("if test $? -ne %s ; then\n", $1);
| 11 printf ("status=`echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; }`\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 20# printf ("echo '%s'|${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2); 21# printf ("if test $? -ne %s ; then\n", $1); 22# printf ("\techo Expected non conformance \\#%d ... continuing\n", ++n); 23# printf ("fi\n"); 24} 25 26NF == 5 { 27# don't alarm the user for now 28 next; 29} 30 31END { printf ("exit $failures\n"); }
| 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 20# printf ("echo '%s'|${GREP} -E -e '%s' > /dev/null 2>&1\n",$3, $2); 21# printf ("if test $? -ne %s ; then\n", $1); 22# printf ("\techo Expected non conformance \\#%d ... continuing\n", ++n); 23# printf ("fi\n"); 24} 25 26NF == 5 { 27# don't alarm the user for now 28 next; 29} 30 31END { printf ("exit $failures\n"); }
|