summaryrefslogtreecommitdiff
path: root/tests/cp/same-file
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-18 02:54:36 +0000
committerJim Meyering <jim@meyering.net>1999-01-18 02:54:36 +0000
commit890d74d50b72479eb5d4a193b64cd46d660112de (patch)
treef47e5e2716b4cd3027b9ccacf91f9da609fe37f0 /tests/cp/same-file
parentf0f15679fb833285f2c21d4cb2d5b4fd54389452 (diff)
downloadcoreutils-890d74d50b72479eb5d4a193b64cd46d660112de.tar.xz
Now that PATH is set properly, use rm and cp rather than $RM and $CP.
Diffstat (limited to 'tests/cp/same-file')
-rwxr-xr-xtests/cp/same-file12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/cp/same-file b/tests/cp/same-file
index 8d93481db..e0b18696a 100755
--- a/tests/cp/same-file
+++ b/tests/cp/same-file
@@ -2,12 +2,9 @@
# Test some of cp's options and how cp handles situations in
# which a naive implementation might overwrite the source file.
-# FIXME: punt for now
-CP=cp
-
if test "$VERBOSE" = yes; then
set -x
- $CP --version
+ cp --version
fi
LANGUAGE=C; export LANGUAGE
@@ -15,9 +12,6 @@ LANG=C; export LANG
VERSION_CONTROL=numbered; export VERSION_CONTROL
-pwd=`pwd`
-PATH=$pwd/../../src:$PATH
-
actual=actual-$$
expected=expected-$$
trap "cd $pwd; rm -rf $actual $expected dir" 0 1 2 3 15
@@ -51,8 +45,8 @@ for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
case "$args" in *sl2*) ln -s foo sl2;; esac
(
(
- # echo 1>&2 $CP $options $args
- $CP $options $args 2>.err
+ # echo 1>&2 cp $options $args
+ cp $options $args 2>.err
echo $? $options
# Normalize the program name in the error output,