summaryrefslogtreecommitdiff
path: root/tests/mkdir/p-2
blob: 7e65697cb48a780fab1a32adef38c7558d8ec5ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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