X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fsubr.sh;h=333ffb66a6b2a3c69152547ae331c0ce67626e4d;hb=a51d83191034919bc76367268929e234d62164db;hp=c0e67f8e1288449110819659deca46b7df6ad04b;hpb=dca20740848a3e316371460a25be29fd574850ed;p=sbcl.git diff --git a/tests/subr.sh b/tests/subr.sh index c0e67f8..333ffb6 100644 --- a/tests/subr.sh +++ b/tests/subr.sh @@ -33,7 +33,8 @@ SBCL_ARGS="--noinform --no-sysinit --no-userinit --noprint --disable-debugger" # Scripts that use these variables should quote them. TEST_BASENAME="`basename $0`" -TEST_FILESTEM="`echo ${TEST_BASENAME%.sh} | sed 's/\./-/g'`" +TEST_FILESTEM="`basename "${TEST_BASENAME}" | sed 's/\.sh$//'`" +TEST_FILESTEM="`echo "${TEST_FILESTEM}" | sed 's/\./-/g'`" TEST_DIRECTORY="$SBCL_PWD/$TEST_FILESTEM-$$" # "Ten four" is the closest numerical slang I can find to "OK", so