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