(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:test_description)
          op: assign_op.Equal
          rhs: {(SQ <'git apply --stat --summary test, with --recount\n'> <'\n'>)}
          spids: [13]
        )
      ]
    )
    (C {<.>} {<'./test-lib.sh'>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:UNC)
          op: assign_op.Equal
          rhs: 
            {
              (SQ 
                <'s/^\\(@@ -[1-9][0-9]*\\),[0-9]* \\(+[1-9][0-9]*\\),[0-9]* @@/\\1,999 \\2,999 @@/'>
              )
            }
          spids: [24]
        )
      ]
    )
    (command.ShAssignment
      pairs: [(assign_pair lhs:(sh_lhs_expr.Name name:num) op:assign_op.Equal rhs:{<0>} spids:[30])]
    )
    (command.WhileUntil
      keyword: <Id.KW_While while>
      cond: (condition.Shell commands:[(C {<read>} {<title>})])
      body: 
        (command.DoGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:num)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (word_part.ArithSub
                        anode: 
                          (arith_expr.Binary
                            op_id: Id.Arith_Plus
                            left: {($ Id.VSub_DollarName '$num')}
                            right: {<Id.Lit_Digits 1>}
                          )
                      )
                    }
                  spids: [42]
                )
              ]
            )
            (C {<test_expect_success>} {(DQ ($ Id.VSub_DollarName '$title'))} 
              {
                (SQ <'\n'> <'\t\tgit apply --stat --summary \\\n'> 
                  <'\t\t\t<"$TEST_DIRECTORY/t4100/t-apply-$num.patch" >current &&\n'> <'\t\ttest_i18ncmp "$TEST_DIRECTORY"/t4100/t-apply-$num.expect current\n'> <'\t'>
                )
              }
            )
            (C {<test_expect_success>} {(DQ ($ Id.VSub_DollarName '$title') <' with recount'>)} 
              {
                (SQ <'\n'> <'\t\tsed -e "$UNC" <"$TEST_DIRECTORY/t4100/t-apply-$num.patch" |\n'> 
                  <'\t\tgit apply --recount --stat --summary >current &&\n'> <'\t\ttest_i18ncmp "$TEST_DIRECTORY"/t4100/t-apply-$num.expect current\n'> <'\t'>
                )
              }
            )
          ]
        )
      redirects: [
        (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'>) <OF>}
              here_end_span_id: 101
              stdin_parts: [
                <'rename\n'>
                <'copy\n'>
                <'rewrite\n'>
                <'mode\n'>
                <'non git (1)\n'>
                <'non git (2)\n'>
                <'non git (3)\n'>
                <'incomplete (1)\n'>
                <'incomplete (2)\n'>
              ]
            )
        )
      ]
    )
    (C {<test_done>})
  ]
)