summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2019-09-25 19:33:13 +0200
committerAkim Demaille <akim.demaille@gmail.com>2019-10-06 08:07:57 +0200
commit17cc7da51938fbf4e2d8c8475a8a6f628a711ba6 (patch)
treeaae4394c9898e461fbe873e783106418bb2e9774 /tests
parent2713e7c4ffebe73bf0dba3a5a4c118213e855973 (diff)
downloadbison-17cc7da51938fbf4e2d8c8475a8a6f628a711ba6.tar.gz
tests: use tput to get the number of columns
* tests/bison.in: here.
Diffstat (limited to 'tests')
-rw-r--r--tests/bison.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bison.in b/tests/bison.in
index ef623a66..31087f2b 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=132}
+: ${COLUMNS=`tput cols || echo 132`}
export COLUMNS
$PREBISON "$abs_top_builddir/src/bison" ${1+"$@"} 2>"$stderr"
status=$?