1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

Now that PATH is set properly, use rm and cp rather than $RM and $CP.

This commit is contained in:
Jim Meyering
1999-01-18 02:54:36 +00:00
parent f0f15679fb
commit 890d74d50b
6 changed files with 16 additions and 33 deletions

View 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,