mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
tests: use tput to get the number of columns
* tests/bison.in: here.
This commit is contained in:
@@ -37,7 +37,7 @@ fi
|
|||||||
# We redirect stderr, which breaks the computation of the terminal
|
# We redirect stderr, which breaks the computation of the terminal
|
||||||
# screen width. So export COLUMNS to Bison, hoping for the shell to
|
# screen width. So export COLUMNS to Bison, hoping for the shell to
|
||||||
# have defined it.
|
# have defined it.
|
||||||
: ${COLUMNS=132}
|
: ${COLUMNS=`tput cols || echo 132`}
|
||||||
export COLUMNS
|
export COLUMNS
|
||||||
$PREBISON "$abs_top_builddir/src/bison" ${1+"$@"} 2>"$stderr"
|
$PREBISON "$abs_top_builddir/src/bison" ${1+"$@"} 2>"$stderr"
|
||||||
status=$?
|
status=$?
|
||||||
|
|||||||
Reference in New Issue
Block a user