2 # verify that cp's --remove-destination option works with -R
4 if test "$VERBOSE" = yes; then
11 trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
12 trap '(exit $?); exit' 1 2 13 15
15 mkdir $tmp || framework_failure=1
16 cd $tmp || framework_failure=1
17 mkdir d e || framework_failure=1
19 if test $framework_failure = 1; then
20 echo 'failure in testing framework'
26 # Do it once with no destination...
27 cp -R --remove-destination d e || fail=1
29 # ...and again, with an existing destination.
30 cp -R --remove-destination d e || fail=1