From 9f79f8d7e0a3bf95b677e42f69393d7608803db2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 19 Apr 2002 19:47:16 +0000 Subject: [PATCH] don't bother with TMPDIR --- tests/rm/r-3 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/rm/r-3 b/tests/rm/r-3 index bbea37001e..96cb8844a3 100755 --- a/tests/rm/r-3 +++ b/tests/rm/r-3 @@ -3,14 +3,15 @@ # An early version of my rewritten rm failed to remove all of # the files on SunOS4 when there were 254 or more in a directory. -: ${TMPDIR=.} - if test "$VERBOSE" = yes; then rm --version set -x fi -tmp=$TMPDIR/t-rm.$$ +pwd=`pwd` +tmp=`echo "$0"|sed 's,.*/,,'`.tmp +trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap '(exit $?); exit' 1 2 13 15 framework_fail=0 mkdir $tmp || framework_fail=1 -- 2.47.3