summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-11-27 10:08:55 +0000
committerJim Meyering <jim@meyering.net>1999-11-27 10:08:55 +0000
commit1e219d6b713ed60fdf4e41783ceca41977faead2 (patch)
treec788d1a61b2321d909574ad27f181787c17ddad4
parent2e0f5a2bac7def3d5d5bb21b07399cc1d6ceb40f (diff)
downloadcoreutils-1e219d6b713ed60fdf4e41783ceca41977faead2.tar.xz
Don't set/use DF or MKDIR.
-rwxr-xr-xtests/mv/setup9
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/mv/setup b/tests/mv/setup
index a4b7ac05d..dad840ddb 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