diff options
Diffstat (limited to 'tests/mv/mv-n')
-rwxr-xr-x | tests/mv/mv-n | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/mv/mv-n b/tests/mv/mv-n index 8d9e0da2e..ada2ade63 100755 --- a/tests/mv/mv-n +++ b/tests/mv/mv-n @@ -21,37 +21,37 @@ print_ver_ mv # test miscellaneous combinations of -f -i -n parameters -touch a b || framework_failure +touch a b || framework_failure_ echo "\`a' -> \`b'" > out_move > out_empty # ask for overwrite, answer no -touch a b || framework_failure +touch a b || framework_failure_ echo n | mv -vi a b 2>/dev/null > out1 || fail=1 compare out1 out_empty || fail=1 # ask for overwrite, answer yes -touch a b || framework_failure +touch a b || framework_failure_ echo y | mv -vi a b 2>/dev/null > out2 || fail=1 compare out2 out_move || fail=1 # -n wins (as the last option) -touch a b || framework_failure +touch a b || framework_failure_ echo y | mv -vin a b 2>/dev/null > out3 || fail=1 compare out3 out_empty || fail=1 # -n wins (as the last option) -touch a b || framework_failure +touch a b || framework_failure_ echo y | mv -vfn a b 2>/dev/null > out4 || fail=1 compare out4 out_empty || fail=1 # -n wins (as the last option) -touch a b || framework_failure +touch a b || framework_failure_ echo y | mv -vifn a b 2>/dev/null > out5 || fail=1 compare out5 out_empty || fail=1 # options --backup and --no-clobber are mutually exclusive -touch a || framework_failure +touch a || framework_failure_ mv -bn a b 2>/dev/null && fail=1 Exit $fail |