1
0
mirror of git://git.suckless.org/sbase synced 2024-12-23 23:43:33 +00:00

Finish up mktemp(1)

This commit is contained in:
FRIGN 2015-02-01 00:14:19 +01:00
parent 01195fa7e5
commit 93a0e759c9
2 changed files with 10 additions and 10 deletions

2
README
View File

@ -44,7 +44,7 @@ The following tools are implemented ('*' == finished, '#' == UTF-8 support,
=* md5sum non-posix none =* md5sum non-posix none
=* mkdir yes none =* mkdir yes none
=* mkfifo yes none =* mkfifo yes none
= mktemp non-posix none =* mktemp non-posix none
=* mv yes (-i) =* mv yes (-i)
=* nice yes none =* nice yes none
= nl no -d, -f, -h, -l, -n, -p, -v, -w = nl no -d, -f, -h, -l, -n, -p, -v, -w

View File

@ -3,25 +3,25 @@
.Os sbase .Os sbase
.Sh NAME .Sh NAME
.Nm mktemp .Nm mktemp
.Nd make temporary filename .Nd create temporary file or directory
.Sh SYNOPSIS .Sh SYNOPSIS
.Nm .Nm
.Op Fl dq .Op Fl dq
.Op Ar template .Op Ar template
.Sh DESCRIPTION .Sh DESCRIPTION
.Nm .Nm
takes the given filename template and overwrites a portion of it to create a creates a temporary file by generating a unique filename with
unique filename. The template may be any filename with at least six `Xs' .Ar template ,
appended to it. If no template is specified a default of `tmp.XXXXXXXXXX' is which has to have at least six 'X's appended to it. If no
used and the tmpdir is set to `/tmp' unless the TMPDIR envrionment variable .Ar template
has been set. is specified, a default of 'tmp.XXXXXXXXXX' is used and the
tmpdir set to '/tmp' or, if set, the TMPDIR environment variable.
.Sh OPTIONS .Sh OPTIONS
.Bl -tag -width Ds .Bl -tag -width Ds
.It Fl d .It Fl d
Make a directory instead of a file create a temporary directory instead of a file.
.It Fl q .It Fl q
Fail silently if an error occurs. This is useful if a script Fail silently if an error occurs.
does not want error output to go to standard error.
.El .El
.Sh SEE ALSO .Sh SEE ALSO
.Xr mkdtemp 3 , .Xr mkdtemp 3 ,