[Bug 261437] outdated mktemp(1) examples

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 24 Jan 2022 18:38:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=261437

            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)  

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

has examples for temporary filenames as

/tmp/temp.XXXX
TMPFILE=`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 manual
pages we should update the documentation.

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

-- 
You are receiving this mail because:
You are the assignee for the bug.