[hackers] [sbase] Finish up mktemp(1) || FRIGN

From: <git_AT_suckless.org>
Date: Sun, 1 Feb 2015 00:30:22 +0100 (CET)

commit 490fb3f93fef7260020396659cc4bba83f8b3c97
Author: FRIGN <dev_AT_frign.de>
Date: Sun Feb 1 00:14:19 2015 +0100

    Finish up mktemp(1)

diff --git a/README b/README
index f13337a..f1efa52 100644
--- a/README
+++ b/README
_AT_@ -44,7 +44,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
 =* md5sum non-posix none
 =* mkdir yes none
 =* mkfifo yes none
-= mktemp non-posix none
+=* mktemp non-posix none
 =* mv yes (-i)
 =* nice yes none
 = nl no -d, -f, -h, -l, -n, -p, -v, -w
diff --git a/mktemp.1 b/mktemp.1
index f78697e..4895e9c 100644
--- a/mktemp.1
+++ b/mktemp.1
_AT_@ -3,25 +3,25 @@
 .Os sbase
 .Nm mktemp
-.Nd make temporary filename
+.Nd create temporary file or directory
 .Op Fl dq
 .Op Ar template
-takes the given filename template and overwrites a portion of it to create a
-unique filename. The template may be any filename with at least six `Xs'
-appended to it. If no template is specified a default of `tmp.XXXXXXXXXX' is
-used and the tmpdir is set to `/tmp' unless the TMPDIR envrionment variable
-has been set.
+creates a temporary file by generating a unique filename with
+.Ar template ,
+which has to have at least six 'X's appended to it. If no
+.Ar template
+is specified, a default of 'tmp.XXXXXXXXXX' is used and the
+tmpdir set to '/tmp' or, if set, the TMPDIR environment variable.
 .Bl -tag -width Ds
 .It Fl d
-Make a directory instead of a file
+create a temporary directory instead of a file.
 .It Fl q
-Fail silently if an error occurs. This is useful if a script
-does not want error output to go to standard error.
+Fail silently if an error occurs.
 .Xr mkdtemp 3 ,
Received on Sun Feb 01 2015 - 00:30:22 CET

This archive was generated by hypermail 2.3.0 : Sun Feb 01 2015 - 00:36:12 CET