summaryrefslogtreecommitdiff
path: root/tests/history4.sub
diff options
context:
space:
mode:
Diffstat (limited to 'tests/history4.sub')
-rw-r--r--tests/history4.sub3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/history4.sub b/tests/history4.sub
index a6bfd33f..651374cf 100644
--- a/tests/history4.sub
+++ b/tests/history4.sub
@@ -14,6 +14,8 @@
HISTFILE=$TMPDIR/newhistory-$$
export HISTFILE
+trap 'rm -f $HISTFILE' EXIT
+
HISTSIZE=32
HISTFILESIZE=32
echo
@@ -43,4 +45,3 @@ echo
printf "$input" | HISTSIZE= HISTFILE= ${THIS_SH} --norc -i 2>/dev/null
echo
printf "$input" | HISTSIZE=6 HISTFILE= ${THIS_SH} --norc -i 2>/dev/null
-