summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-11-01 08:36:52 +0100
committerAkim Demaille <akim.demaille@gmail.com>2019-11-01 12:04:13 +0100
commit2bd1d9e20f805a121b71284c58ef2bfc5e5fd61e (patch)
treea2983b4fbc01e370388c9dae3a5004dc1fd16c65
parent1f2546396ed998f6d1bb75f4c8205b696edee9ac (diff)
downloadbison-2bd1d9e20f805a121b71284c58ef2bfc5e5fd61e.tar.gz
tests: be robust to tput errors
Reported by Denis Excoffier. * tests/bison.in: here.
-rw-r--r--tests/bison.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bison.in b/tests/bison.in
index 31087f2b..98be0118 100644
--- a/tests/bison.in
+++ b/tests/bison.in
@@ -37,7 +37,7 @@ fi
# We redirect stderr, which breaks the computation of the terminal
# screen width. So export COLUMNS to Bison, hoping for the shell to
# have defined it.
-: ${COLUMNS=`tput cols || echo 132`}
+: ${COLUMNS=`(tput cols) 2>/dev/null || echo 132`}
export COLUMNS
$PREBISON "$abs_top_builddir/src/bison" ${1+"$@"} 2>"$stderr"
status=$?