2 # move a file onto itself with --force
4 if test "$VERBOSE" = yes; then
13 rm -f $ff $ff2 || framework_failure
=1
14 echo force-contents
> $ff || framework_failure
=1
15 ln $ff $ff2 || framework_failure
=1
17 if test $framework_failure = 1; then
18 echo 'failure in testing framework'
22 # Make sure we get English translations.
30 # This mv command should exit nonzero.
31 mv --force $ff $ff > out
2>&1 && fail
=1
34 mv: \`$ff' and \`$ff' are the same file
38 test `cat $ff` = force-contents || fail
=1
40 # This should succeed, even though the source and destination
41 # device and inodes are the same.
42 mv --force $ff $ff2 || fail
=1
44 rm -fr out exp
$ff $ff2