12 lines
352 B
Bash
12 lines
352 B
Bash
#! /bin/sh
|
|
#
|
|
# $NetBSD: mktemp,v 1.1 2002/01/31 22:43:50 tv Exp $
|
|
#
|
|
# A script that pretends to act like a stripped-down version of mktemp(1).
|
|
# This is used by lorder.sh, and possibly other script-based host tools.
|
|
# This version simply replaces the X's with mktemp's pid ($$).
|
|
|
|
fname=`echo $1 | sed 's,XX*$,'$$','`
|
|
touch $fname || exit 1
|
|
echo $fname
|