tests: be robust to tput errors

Reported by Denis Excoffier.

* tests/bison.in: here.
This commit is contained in:
Akim Demaille
2019-11-01 08:36:52 +01:00
parent 1f2546396e
commit 2bd1d9e20f

View File

@@ -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=$?