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/same-file | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'tests/cp/same-file') 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, -- cgit v1.2.3-54-g00ecf