summaryrefslogtreecommitdiff
path: root/tests/mv
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-11-27 10:11:25 +0000
committerJim Meyering <jim@meyering.net>1999-11-27 10:11:25 +0000
commit09282a24f65c1dfd91ba35a0ac345ade36d8a391 (patch)
tree04864e9b4cfc7902543dbdd52259f8ee38a008f1 /tests/mv
parentf36a801a9a83c3aea8b9201c03972ef33b177413 (diff)
downloadcoreutils-09282a24f65c1dfd91ba35a0ac345ade36d8a391.tar.xz
Don't set/use RM and MV.
Diffstat (limited to 'tests/mv')
-rwxr-xr-xtests/mv/backup-is-src13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/mv/backup-is-src b/tests/mv/backup-is-src
index a7bdec7da..90c0bf3b8 100755
--- a/tests/mv/backup-is-src
+++ b/tests/mv/backup-is-src
@@ -1,12 +1,9 @@
#!/bin/sh
# Force mv to use the copying code.
-: ${MV=mv}
-: ${RM=rm}
-
if test "$VERBOSE" = yes; then
set -x
- $MV --version
+ mv --version
fi
. $srcdir/setup
@@ -19,7 +16,7 @@ a="$other_partition_tmpdir/a"
a2="$other_partition_tmpdir/a~"
framework_failure=0
-$RM -f $a $a2 || framework_failure=1
+rm -f $a $a2 || framework_failure=1
echo a > $a || framework_failure=1
echo a2 > $a2 || framework_failure=1
@@ -37,10 +34,10 @@ LANG=C
export LANG
# This mv command should exit nonzero.
-$MV --b=simple $a2 $a > out 2>&1 && fail=1
+mv --b=simple $a2 $a > out 2>&1 && fail=1
sed \
- -e "s,$MV:,XXX:," \
+ -e "s,mv:,XXX:," \
-e "s,$a,YYY," \
-e "s,$a2,ZZZ," \
out > out2
@@ -51,6 +48,6 @@ EOF
cmp out2 exp || fail=1
-$RM -fr out out2 exp $a $a2 $other_partition_tmpdir
+rm -fr out out2 exp $a $a2 $other_partition_tmpdir
exit $fail