coreutils/tests/mkdir/p-2

19 lines
319 B
Plaintext
Raw Normal View History

1997-07-09 23:21:03 +08:00
#!/bin/sh
2002-04-20 05:17:08 +08:00
# Just like p-1, but with an absolute path.
1997-07-09 23:21:03 +08:00
if test "$VERBOSE" = yes; then
set -x
2000-04-27 20:08:59 +08:00
mkdir --version
1997-07-09 23:21:03 +08:00
fi
2002-04-20 05:17:08 +08:00
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
1997-07-09 23:21:03 +08:00
2000-04-27 20:08:59 +08:00
mkdir --parents $tmp || fail=1
1997-07-09 23:21:03 +08:00
test -d $tmp || fail=1
exit $fail