# Too few args. This first one did fail, but with an incorrect diagnostic
# until fileutils-4.0u.
-mv --target=d >> out 2>&1 && fail=1
+mv --target=. >> out 2>&1 && fail=1
mv no-file >> out 2>&1 && fail=1
# Target is not a directory.
cat > exp <<\EOF
mv: missing file operand
Try `mv --help' for more information.
-mv: missing file operand after `no-file'
-Try `mv --help' for more information.
-mv: when moving multiple files, last argument must be a directory
-Try `mv --help' for more information.
-mv: specified target, `f2' is not a directory
+mv: missing destination file operand after `no-file'
Try `mv --help' for more information.
+mv: target `f1' is not a directory
+mv: target `f2' is not a directory
EOF
cmp out exp || fail=1