git: e3a9e2f029ab - stable/15 - mktemp.1: Document TMPDIR in ENVIRONMENT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 01 Oct 2025 16:32:21 UTC
The branch stable/15 has been updated by 0mp:
URL: https://cgit.FreeBSD.org/src/commit/?id=e3a9e2f029ab7a0674f44b64e5d246fbc9f932ca
commit e3a9e2f029ab7a0674f44b64e5d246fbc9f932ca
Author: Mateusz Piotrowski <0mp@FreeBSD.org>
AuthorDate: 2025-09-27 15:21:13 +0000
Commit: Mateusz Piotrowski <0mp@FreeBSD.org>
CommitDate: 2025-10-01 16:32:17 +0000
mktemp.1: Document TMPDIR in ENVIRONMENT
While here, use Ev for TMPDIR consistently.
MFC after: 3 days
Event: EuroBSDCon 2025
(cherry picked from commit 6b164f18118d0e8dbf9826d7117e0e757f7eb727)
---
usr.bin/mktemp/mktemp.1 | 12 ++++++++++--
1 file 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