summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-08-20 16:53:33 +0000
committerJim Meyering <jim@meyering.net>2002-08-20 16:53:33 +0000
commit17077cbcbf9dc5a32e7f12ec8cedbde5d9cf5f02 (patch)
treeecc8f40756f003a88beb77ad7b34c8288866195a /tests
parent9db4370c1a924a22f4e49f0f2509244c58b0918b (diff)
downloadcoreutils-17077cbcbf9dc5a32e7f12ec8cedbde5d9cf5f02.tar.xz
Rewrite not to use `: ${VAR=not_set}' paradigm.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/mv/setup8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/mv/setup b/tests/mv/setup
index c5604a0d2..6b03482b6 100755
--- a/tests/mv/setup
+++ b/tests/mv/setup
@@ -4,12 +4,8 @@
# of the current directory. If one is found, create a temporary directory
# inside it.
-: ${CANDIDATE_TMP_DIRS=not_set}
-
-# Work around a bug in the way Ultrix4.3a's /bin/sh handles multi-word
-# variables set with ${VAR="VALUE"}
-test "$CANDIDATE_TMP_DIRS" = not_set \
- && CANDIDATE_TMP_DIRS="$TMPDIR /tmp /var/tmp /usr/tmp $HOME"
+test "${CANDIDATE_TMP_DIRS+set}" = set \
+ || CANDIDATE_TMP_DIRS="$TMPDIR /tmp /var/tmp /usr/tmp $HOME"
other_partition_tmpdir=