components/bash/patches/solaris-016.run-all.patch
author Stefan Teleman <stefan.teleman@oracle.com>
Thu, 13 Dec 2012 15:52:21 -0800
changeset 1082 6d49548fa9da
child 5518 c47fe0edc204
permissions -rw-r--r--
15754923 SUNBT7111705 Upgrade bash to 4.2

--- tests/run-all	1999-10-08 08:07:46.000000000 -0700
+++ tests/run-all	2012-10-10 10:06:33.558822000 -0700
@@ -1,4 +1,4 @@
-#! /bin/sh
+#!/bin/bash
 
 PATH=.:$PATH	# just to get recho/zecho/printenv if not run via `make tests'
 export PATH
@@ -15,6 +15,11 @@
 
 rm -f /tmp/xx
 
+if [ -f /tmp/xx ] ; then
+    echo "someone left a /tmp/xx around. I can't test." 
+    exit 1
+fi
+
 echo Any output from any test, unless otherwise noted, indicates a possible anomaly
 
 for x in run-*
@@ -22,8 +27,9 @@
 	case $x in
 	$0|run-minimal|run-gprof)	;;
 	*.orig|*~) ;;
-	*)	echo $x ; sh $x ;;
+	*) 	echo $x ; ${THIS_SH} $x ;;
 	esac
 done
 
 exit 0
+