t4038-diff-combined: quote paths with whitespace
d76ce4f734 ("log,diff-tree: add --combined-all-paths option", 2019-02-07) added tests for files containing tabs. When the tests are run with bash, the lack of quoting during the file setup causes 'ambiguous redirect' errors. Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Todd Zullinger committed
Mar 17, 2019 at 19:02 UTC
7951a016a55eb9e4698a8dc5805a5724515bf589
1 file changed
+4
-4
t/t4038-diff-combined.sh
+4
-4
@@ -480,18 +480,18 @@ test_expect_success FUNNYNAMES 'setup for --combined-all-paths with funny names'
480
git branch side1d &&
481
git branch side2d &&
482
git checkout side1d &&
483
- test_seq 1 10 >$(printf "file\twith\ttabs") &&
483
+ test_seq 1 10 >"$(printf "file\twith\ttabs")" &&
484
git add file* &&
485
git commit -m with &&
486
git checkout side2d &&
487
- test_seq 1 9 >$(printf "i\tam\ttabbed") &&
488
- echo ten >>$(printf "i\tam\ttabbed") &&
487
+ test_seq 1 9 >"$(printf "i\tam\ttabbed")" &&
488
+ echo ten >>"$(printf "i\tam\ttabbed")" &&
489
git add *tabbed &&
490
git commit -m iam &&
491
git checkout -b funny-names-mergery side1d &&
492
git merge --no-commit side2d &&
493
git rm *tabs &&
494
- echo eleven >>$(printf "i\tam\ttabbed") &&
494
+ echo eleven >>"$(printf "i\tam\ttabbed")" &&
495
git mv "$(printf "i\tam\ttabbed")" "$(printf "fickle\tnaming")" &&
496
git add fickle* &&
497
git commit