]> diplodocus.org Git - nmh/blobdiff - test/whatnow/test-ls
Enclosed program name and directory in double quotes so that they can contain whitespace.
[nmh] / test / whatnow / test-ls
index 050403675481137e7e2c3f00f284a859d8a3410d..e3571ac913adda3225b4311cfa97a2fbf86c51de 100755 (executable)
@@ -7,8 +7,8 @@
 ######################################################
 
 if test -z "${MH_OBJ_DIR}"; then
 ######################################################
 
 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"
 fi
 
 . "$MH_OBJ_DIR/test/common.sh"