]> diplodocus.org Git - nmh/blobdiff - test/install-mh/test-version-check
More debugging test-version-check.
[nmh] / test / install-mh / test-version-check
index 23446608fa569bf990e3c6591b9ea6dc2245f56a..16bbcfef340a2770fbdd4a5655f3b87ac06cf92d 100755 (executable)
@@ -6,7 +6,9 @@
 #
 ######################################################
 
 #
 ######################################################
 
-set -x # ???? debug on buildbot
+test -t 0 && echo stdin  # ????
+test -t 1 && echo stdout # ????
+test -t 2 && echo stderr # ????
 set -e
 
 if test -z "${MH_OBJ_DIR}"; then
 set -e
 
 if test -z "${MH_OBJ_DIR}"; then
@@ -31,10 +33,10 @@ fi
 run_without_input() {
     if [ "$script_command_opt" = -c ]; then
         #### -c takes single argument with command + arguments.
 run_without_input() {
     if [ "$script_command_opt" = -c ]; then
         #### -c takes single argument with command + arguments.
-        script -c "$*" -f -q "$actual" >/dev/null &
+        script -q -f -c "$*" "$actual" >/dev/null &
     else
         #### E.g., FreeBSD.  Don't combine command arguments.
     else
         #### E.g., FreeBSD.  Don't combine command arguments.
-        script -f -q "$actual" "$@" >/dev/null &
+        script -q -t 0 "$actual" "$@" >/dev/null &
     fi
 
     wait $!
     fi
 
     wait $!