summaryrefslogtreecommitdiff
path: root/tests/ere.awk
diff options
context:
space:
mode:
authorAlain Magloire <alainm@rcsm.ee.mcgill.ca>1999-03-07 19:50:21 +0000
committerAlain Magloire <alainm@rcsm.ee.mcgill.ca>1999-03-07 19:50:21 +0000
commitdda229469478d1b0ff4421ece9488f3b3a7daa4b (patch)
tree7594acac1e9aedf7a3777ec0bd90f48e78941584 /tests/ere.awk
parentaf7c52a1fd0b3f9aac1fe560c021551697dae6ef (diff)
downloadgrep-dda229469478d1b0ff4421ece9488f3b3a7daa4b.tar.gz
change by Elie.
use default_matcher for Version display. typos corrected. * tests/*.awk : Linux users are seeing "Broken Pipe" on make check. The problem is that grep does not drain its stdin, thus the previous process in the pipeline receives a SIGPIPE. Other shells are silent about this. There is actually no failure, since the broken pipe is expected. You can work around it by changing the pipeline, so that the input is drained, like this: status=`echo 'check' | { ${GREP} -E -e pattern >/dev/null 2>&1; echo $?; cat >/dev/null; }`; if test $status -ne $errnu then ... fi Excerpt from email exchange with Andreas Schwab.
Diffstat (limited to 'tests/ere.awk')
-rw-r--r--tests/ere.awk2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ere.awk b/tests/ere.awk
index 68a157c7..8f6a5b59 100644
--- a/tests/ere.awk
+++ b/tests/ere.awk
@@ -8,7 +8,7 @@ BEGIN {
$0 ~ /^#/ { next; }
NF == 3 {
- printf ("status=`echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; } `\n",$3, $2);
+ printf ("status=`echo '%s' | { ${GREP} -E -e '%s' > /dev/null 2>&1; echo $?; cat >/dev/null; }`\n",$3, $2);
printf ("if test $status -ne %s ; then\n", $1);
printf ("\techo Spencer ere test \\#%d failed\n", ++n);
printf ("\tfailures=1\n");