]> git.marmaro.de Git - mmh/blobdiff - test/whatnow/test-cd
Enclosed program name and directory in double quotes so that they can contain whitespace.
[mmh] / test / whatnow / test-cd
index d39d9cfc35bbc9e9d55f1e15579c176c0bb75730..d8feb34168546c1a6bf8603a31be1e62729a41a2 100755 (executable)
@@ -7,8 +7,8 @@
 ######################################################
 
 if test -z "${MH_OBJ_DIR}"; then
-    srcdir=`dirname $0`/../..
-    MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR
+    srcdir=`dirname "$0"`/../..
+    MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
 fi
 
 . "$MH_OBJ_DIR/test/common.sh"