summaryrefslogtreecommitdiff
path: root/tests/cp/backup-is-src
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/backup-is-src')
-rwxr-xr-xtests/cp/backup-is-src13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/cp/backup-is-src b/tests/cp/backup-is-src
index f2eaa090e..13ec99290 100755
--- a/tests/cp/backup-is-src
+++ b/tests/cp/backup-is-src
@@ -1,15 +1,12 @@
#!/bin/sh
-: ${CP=cp}
-: ${RM=rm}
-
if test "$VERBOSE" = yes; then
set -x
- $CP --version
+ cp --version
fi
framework_failure=0
-$RM -f a a~ || framework_failure=1
+rm -f a a~ || framework_failure=1
echo a > a || framework_failure=1
echo a-tilde > a~ || framework_failure=1
@@ -27,9 +24,9 @@ LANG=C
export LANG
# This cp command should exit nonzero.
-$CP -b -V simple a~ a > out 2>&1 && fail=1
+cp -b -V simple a~ a > out 2>&1 && fail=1
-sed "s,$CP:,XXX:," out > out2
+sed "s,cp:,XXX:," out > out2
cat > exp <<\EOF
XXX: backing up `a' would destroy source; `a~' not copied
@@ -37,6 +34,6 @@ EOF
cmp out2 exp || fail=1
-$RM -f out out2 exp a a~
+rm -f out out2 exp a a~
exit $fail