(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) 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_id:Redir_Great fd:16777215 arg_word:{(test-patch)} spids:[30]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('diff --git a/file b/file\n') ('--- a/file\n') ('+++ b/file\n') ('@@ -1,2 +1,3 @@\n') (' a\n') (' b\n') ('+c\n') } do_expansion: False here_end: EOF was_filled: True spids: [33] ) ] ) (SimpleCommand words: [{(echo)} {(SQ <a>)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(file)} spids:[44])] ) (SimpleCommand words: [{(echo)} {(SQ <b>)}] redirects: [(Redir op_id:Redir_DGreat fd:16777215 arg_word:{(file)} spids:[53])] ) (SimpleCommand words: [{(echo)} {(SQ <c>)}] redirects: [(Redir op_id:Redir_DGreat fd:16777215 arg_word:{(file)} spids:[62])] ) (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_id:Redir_Great fd:16777215 arg_word:{(test-patch)} spids:[96]) (HereDoc op_id: Redir_DLess fd: 16777215 body: {('diff a/file b/file\n') ('--- a/file\n') ('+++ b/file\n') ('@@ -1,2 +1,3 @@\n') ('+a\n') (' b\n') (' c\n') } do_expansion: False here_end: EOF was_filled: True spids: [99] ) ] ) (SimpleCommand words: [{(echo)} {(SQ <'a\n'> <'b\n'> <c>)}] redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(file)} spids:[106])] ) (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)}) ] )