From fac33c194cb68d0d7335815a2cc5d3961da39b4d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 28 Jun 2004 18:41:01 +0000 Subject: Don't assume "mv --target=nonexistentdir" will complain about the arg count. Adjust to new (briefer) diagnostics. --- tests/mv/diag | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests/mv/diag') diff --git a/tests/mv/diag b/tests/mv/diag index c3063793a..c8d08925d 100755 --- a/tests/mv/diag +++ b/tests/mv/diag @@ -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 -- cgit v1.2.3-70-g09d2