From 17cc7da51938fbf4e2d8c8475a8a6f628a711ba6 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Wed, 25 Sep 2019 19:33:13 +0200 Subject: [PATCH] tests: use tput to get the number of columns * tests/bison.in: here. --- tests/bison.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=$?