X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=sbcl-pwd.sh;h=c9d13c311cdd63a1428967e6f3cf35e0b10c5bf8;hb=HEAD;hp=d4080050f2fcc896fb532162e796e98bfe2b50af;hpb=3126dc35191a145e638dbd6360d537cc864daba3;p=sbcl.git diff --git a/sbcl-pwd.sh b/sbcl-pwd.sh index d408005..c9d13c3 100644 --- a/sbcl-pwd.sh +++ b/sbcl-pwd.sh @@ -4,10 +4,13 @@ # This ensures that SBCL_PWD is a path understandable to SBCL. sbcl_pwd() { - if [ "$OSTYPE" = "cygwin" ] ; then - SBCL_PWD=`cygpath -m $(pwd)` - else - SBCL_PWD=`pwd` - fi + case "${OSTYPE:-}" in + cygwin) + SBCL_PWD="`cygpath -m \"$(pwd)\"`" ;; + msys) + SBCL_PWD="`pwd -W`" ;; + *) + SBCL_PWD="`pwd`" ;; + esac export SBCL_PWD }