Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2022 18:38:40 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 261437] outdated mktemp(1) examples
Message-ID:  <bug-261437-9@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261437

            Bug ID: 261437
           Summary: outdated mktemp(1) examples
           Product: Documentation
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Manual Pages
          Assignee: bugs@FreeBSD.org
          Reporter: wosch@FreeBSD.org
                CC: doc@FreeBSD.org

The manual page for mktemp(1)=20=20

  https://man.freebsd.org/mktemp/1

has examples for temporary filenames as

/tmp/temp.XXXX
TMPFILE=3D`mktemp /tmp/${tempfoo}.XXXXXX` || exit 1

Using 4 or 6 X was probably ok 20 years ago, but not anymore. Best practice=
 is
to use 10 X. Given that our users often copy & paste examples from our manu=
al
pages we should update the documentation.

PS: same for mkstemp(3)
https://man.freebsd.org/mkstemp/3

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261437-9>