Add a new test for filenames with spaces.

This commit is contained in:
Avery Pennarun 2010-11-21 06:18:51 -08:00
commit 4d47b5ec7f
7 changed files with 17 additions and 3 deletions

2
t/space dir/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
/space file
/space 2

1
t/space dir/clean.do Normal file
View file

@ -0,0 +1 @@
rm -f *~ .*~ "space 2"

1
t/space dir/space 2.do Normal file
View file

@ -0,0 +1 @@
echo $$

View file

@ -0,0 +1 @@
redo-ifchange "space 2"

6
t/space dir/test.do Normal file
View file

@ -0,0 +1,6 @@
redo "space file"
F1="$(cat "space 2")"
redo "../space dir/space file"
F2="$(cat "space 2")"
[ "$F1" = "$F2" ] || exit 2
[ -n "$F1" ] || exit 3