diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-11-01 08:36:52 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-11-01 12:04:13 +0100 |
commit | 2bd1d9e20f805a121b71284c58ef2bfc5e5fd61e (patch) | |
tree | a2983b4fbc01e370388c9dae3a5004dc1fd16c65 | |
parent | 1f2546396ed998f6d1bb75f4c8205b696edee9ac (diff) | |
download | bison-2bd1d9e20f805a121b71284c58ef2bfc5e5fd61e.tar.gz |
tests: be robust to tput errors
Reported by Denis Excoffier.
* tests/bison.in: here.
-rw-r--r-- | tests/bison.in | 2 |
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=$? |