Skip to content

Commit 39252c8

Browse files
Shubhamlmpgitster
authored andcommitted
t7001: use here-docs instead of echo
Change from old style to current style by taking advantage of here-docs instead of echo commands. Signed-off-by: Shubham Verma <[email protected]> Reviewed-by: Eric Sunshine <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5d683c3 commit 39252c8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

t/t7001-mv.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,10 @@ test_expect_success 'git mv to move multiple sources into a directory' '
228228
git add dir/?.txt &&
229229
git mv dir/a.txt dir/b.txt other &&
230230
git ls-files >actual &&
231-
{ echo other/a.txt; echo other/b.txt; } >expect &&
231+
cat >expect <<-\EOF &&
232+
other/a.txt
233+
other/b.txt
234+
EOF
232235
test_cmp expect actual
233236
'
234237

0 commit comments

Comments
 (0)