(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description spids:[13]) op: Equal rhs: {(SQ <'git apply trying to add an ending line.\n'> <'\n'>)} spids: [13] ) ] spids: [13] ) (C {(.)} {(./test-lib.sh)}) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(test-patch)}) (HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EscapedLiteralPart token:<Lit_EscapedChar '\\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') ] ) ] ) (SimpleCommand words: [{(echo)} {(SQ <a>)}] redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(file)})] ) (SimpleCommand words: [{(echo)} {(SQ <b>)}] redirects: [(Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(file)})] ) (SimpleCommand words: [{(echo)} {(SQ <c>)}] redirects: [(Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(file)})] ) (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'>)} ) (SimpleCommand words: [{(cat)}] redirects: [ (Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(test-patch)}) (HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EscapedLiteralPart token:<Lit_EscapedChar '\\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') ] ) ] ) (SimpleCommand words: [{(echo)} {(SQ <'a\n'> <'b\n'> <c>)}] redirects: [(Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(file)})] ) (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)}) ] )