]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/run-minimal
bash-4.4 rc1 release
[thirdparty/bash.git] / tests / run-minimal
index 4ab9f3c24a288df15621cf0baa44c950aa535416..c7fba73e6b87dfd53db5add6e426103289fd3753 100644 (file)
@@ -7,7 +7,10 @@
 : ${TMPDIR:=/tmp}
 export TMPDIR
 
-BASH_TSTOUT=/tmp/xx    # for now
+# basic /bin/sh syntax
+SUFFIX=`${THIS_SH} -c 'echo $(( $RANDOM + $BASHPID ))'`
+
+BASH_TSTOUT=${TMPDIR}/bashtst-$SUFFIX  # for now
 export BASH_TSTOUT
 
 trap 'rm -f $BASH_TSTOUT' 0
@@ -40,6 +43,7 @@ do
        run-precedence|run-quote|run-read|run-rhs-exp|run-strip|run-tilde) echo $x ; sh $x ;;
        *)      ;;
        esac
+       rm -f "$BASH_TSTOUT"
 done
 
 exit 0