Fix run-tests.sh on Solaris.
[sbcl.git] / sbcl-pwd.sh
index ceded1e..dcf677b 100644 (file)
@@ -4,10 +4,10 @@
 # This ensures that SBCL_PWD is a path understandable to SBCL.
 
 sbcl_pwd() {
-    if [ "$OSTYPE" = "cygwin" ] ; then
-       SBCL_PWD=`cygpath -m "$(pwd)"`
+    if [ "${OSTYPE:-}" = "cygwin" ] ; then
+       SBCL_PWD="`cygpath -m \"$(pwd)\"`"
     else
-       SBCL_PWD=`pwd`
+       SBCL_PWD="`pwd`"
     fi
     export SBCL_PWD
 }