2 # Make sure permissions are preserved when moving from one partition to another.
4 if test "$VERBOSE" = yes; then
11 if test -z "$other_partition_tmpdir"; then
15 LANGUAGE
=C
; export LANGUAGE
20 trap "cd $pwd; rm -rf $dir $other_partition_tmpdir" 0 1 2 3 15
23 unset VERSION_CONTROL SIMPLE_BACKUP_SUFFIX
25 if test "${VERSION_CONTROL+set}" = set; then
26 echo '$0: the VERSION_CONTROL envvar is set --' \
27 ' unset it and rerun this test' >&2
31 if test "${SIMPLE_BACKUP_SUFFIX+set}" = set; then
32 echo '$0: the SIMPLE_BACKUP_SUFFIX envvar is set --' \
33 ' unset it and rerun this test' >&2
43 mv file $other_partition_tmpdir
46 test -f file && fail
=1
47 test -f $other_partition_tmpdir/file || fail
=1
49 # This would have failed with the mv from fileutils-4.0i.
50 test -r $other_partition_tmpdir/file || fail
=1