X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=sbcl-pwd.sh;h=dcf677b7cebde88a644e729f44cddac3004e0e38;hb=9c9d6dbdc28a8bfe70be09f35263e9ec02411d0e;hp=e4be84d7163d34627159f789f4b98c7019c9aaa5;hpb=1acfa21e0796f5d72d776b0fd53645813d5f2d98;p=sbcl.git diff --git a/sbcl-pwd.sh b/sbcl-pwd.sh index e4be84d..dcf677b 100644 --- a/sbcl-pwd.sh +++ b/sbcl-pwd.sh @@ -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 $a(pwd)` + if [ "${OSTYPE:-}" = "cygwin" ] ; then + SBCL_PWD="`cygpath -m \"$(pwd)\"`" else - SBCL_PWD=`pwd` + SBCL_PWD="`pwd`" fi export SBCL_PWD }