aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/mktemp/mktemp.1
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mktemp/mktemp.1')
-rw-r--r--usr.bin/mktemp/mktemp.112
1 files changed, 10 insertions, 2 deletions
diff --git a/usr.bin/mktemp/mktemp.1 b/usr.bin/mktemp/mktemp.1
index 063f25f216dc..3b8381c0586c 100644
--- a/usr.bin/mktemp/mktemp.1
+++ b/usr.bin/mktemp/mktemp.1
@@ -27,7 +27,7 @@
.\"
.\" From: $OpenBSD: mktemp.1,v 1.8 1998/03/19 06:13:37 millert Exp $
.\"
-.Dd August 4, 2022
+.Dd September 27, 2025
.Dt MKTEMP 1
.Os
.Sh NAME
@@ -185,6 +185,13 @@ but still introduces a race condition.
Use of this
option is not encouraged.
.El
+.Sh ENVIRONMENT
+.Bl -tag -width TMPDIR
+.It Ev TMPDIR
+The directory in which to store temporary files.
+Refer to
+.Xr environ 7 .
+.El
.Sh EXIT STATUS
.Ex -std
.Sh EXAMPLES
@@ -200,7 +207,8 @@ TMPFILE=`mktemp /tmp/${tempfoo}.XXXXXXXXXX` || exit 1
echo "program output" >> $TMPFILE
.Ed
.Pp
-To allow the use of $TMPDIR:
+To allow the use of
+.Ev TMPDIR :
.Bd -literal -offset indent
tempfoo=`basename $0`
TMPFILE=`mktemp -t ${tempfoo}` || exit 1