/mktemp.bash

C's stdlib::mktemp like written in pure Bourne again shell.

Primary LanguageShellApache License 2.0Apache-2.0

mktemp.bash

Build status

C's stdlib::mktemp like written in pure Bourne again shell.

Specification

It try to follow the stdlib::mktemp specification available here as much as possible plus creating the temporary file.

Install me

bpkg install le-garff-yoann/mktemp.bash

Use me

. mktemp.bash

bmktemp /tmp/tmp.XXXXXX # create and print /tmp/tmp.g20Jxn to &1

Test me

bpkg install lehmannro/assert.sh

bash test.sh