(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'test_description='> name:test_description) op: assign_op.Equal rhs: {(SQ <'git apply trying to add an ending line.\n'> <'\n'>)} spids: [13] ) ] redirects: [] ) (C {<.>} {<'./test-lib.sh'>}) (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<test-patch>}) (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.HereDoc here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'> ch:E) <OF>} here_end_span_id: 44 stdin_parts: [ <'diff --git a/file b/file\n'> <'--- a/file\n'> <'+++ b/file\n'> <'@@ -1,2 +1,3 @@\n'> <' a\n'> <' b\n'> <'+c\n'> ] ) ) ] more_env: [] do_fork: T ) (command.Simple words: [{<echo>} {(SQ <a>)}] redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<file>})] more_env: [] do_fork: T ) (command.Simple words: [{<echo>} {(SQ <b>)}] redirects: [(redir op:<Id.Redir_DGreat '>>'> loc:(redir_loc.Fd fd:1) arg:{<file>})] more_env: [] do_fork: T ) (command.Simple words: [{<echo>} {(SQ <c>)}] redirects: [(redir op:<Id.Redir_DGreat '>>'> loc:(redir_loc.Fd fd:1) arg:{<file>})] more_env: [] do_fork: T ) (C {<test_expect_success>} {<setup>} {(SQ <'git update-index --add file'>)}) (C {<test_expect_success>} {(SQ <'apply at the end'>)} {(SQ <'test_must_fail git apply --index test-patch'>)} ) (command.Simple words: [{<cat>}] redirects: [ (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<test-patch>}) (redir op: <Id.Redir_DLess '<<'> loc: (redir_loc.Fd fd:0) arg: (redir_param.HereDoc here_begin: {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\E'> ch:E) <OF>} here_end_span_id: 118 stdin_parts: [ <'diff a/file b/file\n'> <'--- a/file\n'> <'+++ b/file\n'> <'@@ -1,2 +1,3 @@\n'> <'+a\n'> <' b\n'> <' c\n'> ] ) ) ] more_env: [] do_fork: T ) (command.Simple words: [{<echo>} {(SQ <'a\n'> <'b\n'> <c>)}] redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<file>})] more_env: [] do_fork: T ) (C {<git>} {<update-index>} {<file>}) (C {<test_expect_success>} {(SQ <'apply at the beginning'>)} {(SQ <'test_must_fail git apply --index test-patch'>)} ) (C {<test_done>}) ] )