Don't assume "mv --target=nonexistentdir" will complain about the arg count.

Adjust to new (briefer) diagnostics.
This commit is contained in:
Jim Meyering committed 2004-06-28 18:41:01 +00:00
1 parent 6860c032da
commit fac33c194c
1 file changed
+4 -6
+4 -6
View File
@@ -31,7 +31,7 @@ fi
# 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.
@@ -41,12 +41,10 @@ mv --target=f2 f1 >> out 2>&1 && fail=1
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