sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit 93a0e759c9994e110f9cf6b773cdc9a4c2dd4f75
parent 01195fa7e509c84a69652761ce7b58776eb3deff
Author: FRIGN <dev@frign.de>
Date:   Sun Feb  1 00:14:19 +0100

Finish up mktemp(1)

Diffstat:
README | 2+-
mktemp.1 | 18+++++++++---------
2 files changed, 10 insertions(+), 10 deletions(-)
diff --git 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 @@ -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 ,