]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: fix false failure with spaces in absolute $PWD
authorPádraig Brady <P@draigBrady.com>
Sat, 16 Jan 2016 17:45:57 +0000 (17:45 +0000)
committerPádraig Brady <P@draigBrady.com>
Sat, 16 Jan 2016 17:45:57 +0000 (17:45 +0000)
* tests/install/create-leading.sh: Ensure $PWD is quoted.
Reported by `make dist-check`.

tests/install/create-leading.sh

index 62f74f53f1163cd130a9e30e9da76c52eba0460e..4b8e4b4b77dd05d2eff49de4e0efc4125c70fe4f 100755 (executable)
@@ -36,7 +36,7 @@ test -r no-dir1/no-dir2/dest || fail=1
 # due to incorrectly modified working directory
 mkdir dir1 || framework_failure_
 touch dir1/file1 || framework_failure_
-ginstall -D $PWD/dir1/file1 $file -t $PWD/no-dir2/ || fail=1
+ginstall -D "$PWD/dir1/file1" $file -t "$PWD/no-dir2/" || fail=1
 test -r no-dir2/$file && test -r no-dir2/file1 || fail=1
 
 Exit $fail