Thread (12 messages) 12 messages, 2 authors, 2021-02-09

[PATCH v2 09/10] t7001: use here-docs instead of echo

flat view
STALE2084d SUPERSEDED

From: shubham verma <hidden>
Date: 2021-02-09 17:35:17
Subsystem: the rest · Maintainer: Linus Torvalds

Status: Superseded by v3 (posted 2021-02-11). [go to v3]

Revision v2 (3 revisions archived).

Revisions (3)
  1. v1
  2. v2 current [diff against previous]
  3. v3 [diff against previous]
Change from old style to current style by taking advantage of
here-docs instead of echo commands.

Signed-off-by: shubham verma <redacted>
---
 t/t7001-mv.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/t/t7001-mv.sh b/t/t7001-mv.sh
index 9a73232c7c..2e2e60e0d3 100755
--- a/t/t7001-mv.sh
+++ b/t/t7001-mv.sh
@@ -226,7 +226,10 @@ test_expect_success 'git mv to move multiple sources into a directory' '
 	git add dir/?.txt &&
 	git mv dir/a.txt dir/b.txt other &&
 	git ls-files >actual &&
-	{ echo other/a.txt; echo other/b.txt; } >expect &&
+	cat >expect <<-\EOF &&
+	other/a.txt
+	other/b.txt
+	EOF
 	test_cmp expect actual
 '
 
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help