From 2bd1d9e20f805a121b71284c58ef2bfc5e5fd61e Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Fri, 1 Nov 2019 08:36:52 +0100 Subject: [PATCH] tests: be robust to tput errors Reported by Denis Excoffier. * 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 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=$?