summaryrefslogtreecommitdiff
path: root/usr.bin/spell/spell.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/spell/spell.ksh')
-rw-r--r--usr.bin/spell/spell.ksh7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/spell/spell.ksh b/usr.bin/spell/spell.ksh
index 532ef88e28c..6ce7eedcb28 100644
--- a/usr.bin/spell/spell.ksh
+++ b/usr.bin/spell/spell.ksh
@@ -1,6 +1,6 @@
#!/bin/ksh -
#
-# $OpenBSD: spell.ksh,v 1.3 2002/11/27 01:18:34 margarida Exp $
+# $OpenBSD: spell.ksh,v 1.4 2003/02/08 10:19:30 pvalchev Exp $
#
# Copyright (c) 2001 Todd C. Miller <Todd.Miller@courtesan.com>
# All rights reserved.
@@ -72,7 +72,10 @@ while test "${argv[$OPTIND]#+}" = "${argv[$OPTIND]}" && \
;;
t) DEROFF="detex"
;;
- v) VTMP=`mktemp /tmp/spell.XXXXXXXX` || exit 1
+ v) VTMP=`mktemp /tmp/spell.XXXXXXXX` || {
+ rm -f ${TMP}
+ exit 1
+ }
FLAGS[${#FLAGS[@]}]="-v"
FLAGS[${#FLAGS[@]}]="-o"
FLAGS[${#FLAGS[@]}]="$VTMP"