From: David Levine Date: Sat, 18 Feb 2012 01:08:42 +0000 (-0600) Subject: Enclosed program name and directory in double quotes so that they can contain whitespace. X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=e107aac243dbd4021e57f4c455c7e3ffd82b819e;p=mmh Enclosed program name and directory in double quotes so that they can contain whitespace. --- diff --git a/test/bad-input/test-header b/test/bad-input/test-header index 98e8c7a..b45a576 100755 --- a/test/bad-input/test-header +++ b/test/bad-input/test-header @@ -6,8 +6,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" diff --git a/test/folder/test-create b/test/folder/test-create index 2e9e627..1af751e 100755 --- a/test/folder/test-create +++ b/test/folder/test-create @@ -6,8 +6,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" diff --git a/test/folder/test-total b/test/folder/test-total index c222792..df9c342 100755 --- a/test/folder/test-total +++ b/test/folder/test-total @@ -6,8 +6,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" diff --git a/test/format/test-localmbox b/test/format/test-localmbox index a0d4392..36f9392 100755 --- a/test/format/test-localmbox +++ b/test/format/test-localmbox @@ -5,8 +5,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" diff --git a/test/format/test-myhost b/test/format/test-myhost index c132565..d7e53e1 100755 --- a/test/format/test-myhost +++ b/test/format/test-myhost @@ -5,8 +5,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" diff --git a/test/format/test-mymbox b/test/format/test-mymbox index 5a8ef41..e1d1ead 100755 --- a/test/format/test-mymbox +++ b/test/format/test-mymbox @@ -5,8 +5,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" diff --git a/test/format/test-myname b/test/format/test-myname index 97a0539..2cc3ce0 100755 --- a/test/format/test-myname +++ b/test/format/test-myname @@ -5,8 +5,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" diff --git a/test/inc/test-deb359167 b/test/inc/test-deb359167 index 0058a8a..af49b87 100755 --- a/test/inc/test-deb359167 +++ b/test/inc/test-deb359167 @@ -3,8 +3,8 @@ set -e 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" diff --git a/test/inc/test-eom-align b/test/inc/test-eom-align index c330067..2afa100 100755 --- a/test/inc/test-eom-align +++ b/test/inc/test-eom-align @@ -5,8 +5,8 @@ set -e 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" diff --git a/test/manpages/test-manpages b/test/manpages/test-manpages index 7cb7db8..fb86c73 100755 --- a/test/manpages/test-manpages +++ b/test/manpages/test-manpages @@ -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" diff --git a/test/mhbuild/test-forw b/test/mhbuild/test-forw index 5369f22..22f32df 100755 --- a/test/mhbuild/test-forw +++ b/test/mhbuild/test-forw @@ -6,8 +6,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" diff --git a/test/mhshow/test-cte-binary b/test/mhshow/test-cte-binary index 7d2125d..e2d39f8 100755 --- a/test/mhshow/test-cte-binary +++ b/test/mhshow/test-cte-binary @@ -6,8 +6,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" diff --git a/test/mhshow/test-qp b/test/mhshow/test-qp index 8116b21..3d4beb8 100755 --- a/test/mhshow/test-qp +++ b/test/mhshow/test-qp @@ -8,8 +8,8 @@ set -e 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" diff --git a/test/mhshow/test-subpart b/test/mhshow/test-subpart index 353962d..6396f62 100755 --- a/test/mhshow/test-subpart +++ b/test/mhshow/test-subpart @@ -9,8 +9,8 @@ set -e 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" diff --git a/test/new/test-basic b/test/new/test-basic index bbb9425..e22f5a1 100755 --- a/test/new/test-basic +++ b/test/new/test-basic @@ -6,8 +6,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" diff --git a/test/pick/test-stderr b/test/pick/test-stderr index 07a2cf2..e45e13d 100755 --- a/test/pick/test-stderr +++ b/test/pick/test-stderr @@ -6,8 +6,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" diff --git a/test/repl/test-if-str b/test/repl/test-if-str index 2ed4fd0..8456df8 100755 --- a/test/repl/test-if-str +++ b/test/repl/test-if-str @@ -9,8 +9,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" diff --git a/test/scan/test-scan b/test/scan/test-scan index 8e59b96..c0408f4 100755 --- a/test/scan/test-scan +++ b/test/scan/test-scan @@ -6,8 +6,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" diff --git a/test/whatnow/test-attach-detach b/test/whatnow/test-attach-detach index 5c359de..a297273 100755 --- a/test/whatnow/test-attach-detach +++ b/test/whatnow/test-attach-detach @@ -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" diff --git a/test/whatnow/test-cd b/test/whatnow/test-cd index d39d9cf..d8feb34 100755 --- a/test/whatnow/test-cd +++ b/test/whatnow/test-cd @@ -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" diff --git a/test/whatnow/test-ls b/test/whatnow/test-ls index 0504036..e3571ac 100755 --- a/test/whatnow/test-ls +++ b/test/whatnow/test-ls @@ -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"