mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-30 12:17:43 +08:00
19 lines
319 B
Bash
Executable File
19 lines
319 B
Bash
Executable File
#!/bin/sh
|
|
# Just like p-1, but with an absolute path.
|
|
|
|
if test "$VERBOSE" = yes; then
|
|
set -x
|
|
mkdir --version
|
|
fi
|
|
|
|
pwd=`pwd`
|
|
tmp=`echo "$0"|sed 's,.*/,,'`.tmp
|
|
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
|
|
trap '(exit $?); exit' 1 2 13 15
|
|
|
|
mkdir --parents $tmp || fail=1
|
|
|
|
test -d $tmp || fail=1
|
|
|
|
exit $fail
|