summaryrefslogtreecommitdiff
path: root/src/mkstemp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mkstemp')
-rwxr-xr-xsrc/mkstemp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mkstemp b/src/mkstemp
new file mode 100755
index 0000000..5511dd3
--- /dev/null
+++ b/src/mkstemp
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -eu
+
+
+name="$(tempname)"
+touch "$name"
+printf '%s\n' "$name"