From 890d74d50b72479eb5d4a193b64cd46d660112de Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 18 Jan 1999 02:54:36 +0000 Subject: Now that PATH is set properly, use rm and cp rather than $RM and $CP. --- tests/cp/backup-is-src | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'tests/cp/backup-is-src') 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 -- cgit v1.2.3-54-g00ecf