tests: avoid failure when running with no tty
authorJim Meyering <meyering@fb.com>
Tue, 7 Feb 2017 00:36:18 +0000 (16:36 -0800)
committerJim Meyering <meyering@fb.com>
Tue, 7 Feb 2017 00:36:18 +0000 (16:36 -0800)
* tests/help-version (zcat_setup): Export TERM=dumb, to avoid zless
malfunction.  Reported by Assaf Gordon in https://bugs.gnu.org/25636#8

tests/help-version

index 734a24adf05d916c4f2fb1d752c676cb18ad1bde..aa704711482e850beea2df38afb1f1cbe7beb8a3 100755 (executable)
@@ -155,7 +155,7 @@ dd_setup () { args=status=noxfer; }
 
 zdiff_setup () { args="$args $zin $zin2"; }
 zcmp_setup () { zdiff_setup; }
-zcat_setup () { args="$args $zin"; }
+zcat_setup () { TERM=dumb; export TERM; args="$args $zin"; }
 gunzip_setup () { zcat_setup; }
 zmore_setup () { zcat_setup; }
 zless_setup () { zcat_setup; }