From 93a0e759c9994e110f9cf6b773cdc9a4c2dd4f75 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Sun, 1 Feb 2015 00:14:19 +0100 Subject: [PATCH] Finish up mktemp(1) --- README | 2 +- mktemp.1 | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README b/README index f13337a..f1efa52 100644 --- a/README +++ b/README @@ -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 @@ -3,25 +3,25 @@ .Os sbase .Sh NAME .Nm mktemp -.Nd make temporary filename +.Nd create temporary file or directory .Sh SYNOPSIS .Nm .Op Fl dq .Op Ar template .Sh DESCRIPTION .Nm -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. .Sh OPTIONS .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. .El .Sh SEE ALSO .Xr mkdtemp 3 ,