]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Rewrite not to use `: ${VAR=not_set}' paradigm.
authorJim Meyering <jim@meyering.net>
Tue, 20 Aug 2002 16:53:33 +0000 (16:53 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 20 Aug 2002 16:53:33 +0000 (16:53 +0000)
tests/mv/setup

index c5604a0d2d7f49f1cc9e8e09be32159db841dc9a..6b03482b6a9f9fba710cdbbe070d65df374166c4 100755 (executable)
@@ -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=