diff options
author | Jim Meyering <jim@meyering.net> | 1999-01-18 02:54:36 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-01-18 02:54:36 +0000 |
commit | 890d74d50b72479eb5d4a193b64cd46d660112de (patch) | |
tree | f47e5e2716b4cd3027b9ccacf91f9da609fe37f0 /tests/cp/backup-is-src | |
parent | f0f15679fb833285f2c21d4cb2d5b4fd54389452 (diff) | |
download | coreutils-890d74d50b72479eb5d4a193b64cd46d660112de.tar.xz |
Now that PATH is set properly, use rm and cp rather than $RM and $CP.
Diffstat (limited to 'tests/cp/backup-is-src')
-rwxr-xr-x | tests/cp/backup-is-src | 13 |
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 |