(NEW): Undefine to avoid warning about redefinition.
[coreutils.git] / tests / mkdir / p-2
blobd007f3551522602b19d55590e2358ab8f377cf2e
1 #!/bin/sh
2 # Just like p-1, but with TMPDIR=.
4 : ${MKDIR=mkdir}
6 TMPDIR=.
8 if test "$VERBOSE" = yes; then
9 set -x
10 $MKDIR --version
13 tmp=$TMPDIR/t-mkdir.$$
14 temp_files=$tmp
15 rm -rf $temp_files
17 $MKDIR --parents $tmp || fail=1
19 test -d $tmp || fail=1
21 rm -rf $temp_files
23 exit $fail