X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=sbcl-pwd.sh;h=c9d13c311cdd63a1428967e6f3cf35e0b10c5bf8;hb=HEAD;hp=ceded1e1b2c8aafb8c23edaee0e63157d7f7ed71;hpb=102b7c83b326855e16c3bc3ce4fa60c6d7aaba85;p=sbcl.git diff --git a/sbcl-pwd.sh b/sbcl-pwd.sh index ceded1e..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 }