From 0db207c66c8b992f4c123c6a25f3cb1809ec4149 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Fri, 30 Nov 2007 12:14:57 +0100 Subject: Add quotes to protect against white space in build dir name. * tests/check.mk (TESTS_ENVIRONMENT): Quote $(abs_srcdir). * tests/chmod/setgid: Quote absolute names. * tests/misc/help-version: Likewise. * tests/misc/pwd-unreadable-parent: Likewise. * tests/rmdir/ignore: Likewise. * tests/test-lib.sh: Likewise. --- tests/rmdir/ignore | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/rmdir') diff --git a/tests/rmdir/ignore b/tests/rmdir/ignore index 6ad89577c..bb3f62f2e 100755 --- a/tests/rmdir/ignore +++ b/tests/rmdir/ignore @@ -24,14 +24,14 @@ fi . $srcdir/../test-lib.sh cwd=`pwd` -mkdir -p $cwd/a/b/c $cwd/a/x || framework_failure +mkdir -p "$cwd/a/b/c" "$cwd/a/x" || framework_failure fail=0 -rmdir -p --ignore-fail-on-non-empty $cwd/a/b/c || fail=1 +rmdir -p --ignore-fail-on-non-empty "$cwd/a/b/c" || fail=1 # $cwd/a/x should remain -test -d $cwd/a/x || fail=1 +test -d "$cwd/a/x" || fail=1 # $cwd/a/b and $cwd/a/b/c should be gone -test -d $cwd/a/b && fail=1 -test -d $cwd/a/b/c && fail=1 +test -d "$cwd/a/b" && fail=1 +test -d "$cwd/a/b/c" && fail=1 exit $fail -- cgit v1.2.3-70-g09d2