tap/awk: avoid redirection issues with bash 3.2 and earlier
authorPeter Rosin <peda@lysator.liu.se>
Tue, 10 Jan 2012 09:01:29 +0000 (10:01 +0100)
committerPeter Rosin <peda@lysator.liu.se>
Tue, 10 Jan 2012 09:01:29 +0000 (10:01 +0100)
commit8525b870d5caa0a04858aa436ad6949ec277fc0c
tree8226c7cbffe3cb9df9b8bfa4d26cae484ef9f94a
parent63aa6177cc67ff43bdc4f68769ac8fc6585e31e9
tap/awk: avoid redirection issues with bash 3.2 and earlier

Fixes automake bug#10465.

* lib/tap-driver.sh: Add workaround for bash 3.2 and earlier, which
sometimes does not properly set '$?' when failing to write redirected
output of a compound command.  See the Autoconf manual for more details.

The workaround was pointed out by Eric Blake.
lib/tap-driver.sh