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/>

index | next in thread | raw e-mail

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 on the CC list for the bug.

home | help

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