From 1e219d6b713ed60fdf4e41783ceca41977faead2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 27 Nov 1999 10:08:55 +0000 Subject: [PATCH] Don't set/use DF or MKDIR. --- tests/mv/setup | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tests/mv/setup b/tests/mv/setup index a4b7ac0..dad840d 100755 --- a/tests/mv/setup +++ b/tests/mv/setup @@ -4,9 +4,6 @@ # of the current directory. If one is found, create a temporary directory # inside it. -: ${DF=df} -: ${MKDIR=mkdir} - : ${CANDIDATE_TMP_DIRS=not_set} # Work around a bug in the way Ultrix4.3a's /bin/sh handles multi-word @@ -18,15 +15,15 @@ other_partition_tmpdir= # WARNING: using sed like this to extract the mount point will fail # if the mount point name contains `% '. -dot_mount_point=`$DF --no-sync -P . | sed -n '2s/.*% *//p'` +dot_mount_point=`df --no-sync -P . | sed -n '2s/.*% *//p'` for d in $CANDIDATE_TMP_DIRS; do - d_mount_point=`$DF --no-sync -P $d | sed -n '2s/.*% *//p'` + d_mount_point=`df --no-sync -P $d | sed -n '2s/.*% *//p'` # Same partition? Skip it. test x$d_mount_point = x$dot_mount_point && continue # See if we can create a directory in it. - if $MKDIR "$d/df-$$" > /dev/null 2>&1; then + if mkdir "$d/df-$$" > /dev/null 2>&1; then other_partition_tmpdir="$d/df-$$" break fi -- 2.7.4