diff options
Diffstat (limited to 'gnu/usr.bin/grep/tests/bre.awk')
| -rw-r--r-- | gnu/usr.bin/grep/tests/bre.awk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.bin/grep/tests/bre.awk b/gnu/usr.bin/grep/tests/bre.awk index 39730713607a..9c9fef8275a2 100644 --- a/gnu/usr.bin/grep/tests/bre.awk +++ b/gnu/usr.bin/grep/tests/bre.awk @@ -8,8 +8,8 @@ BEGIN { $0 ~ /^#/ { next; } NF == 3 { - printf ("echo '%s' | ${GREP} -e '%s' > /dev/null 2>&1\n",$3, $2); - printf ("if test $? -ne %s ; then\n", $1); + printf ("status=`echo '%s' | { ${GREP} -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 bre test \\#%d failed\n", ++n); printf ("\tfailures=1\n"); printf ("fi\n"); |
