(command.CommandList
  children: [
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:test_description)
          op: Equal
          rhs: {(SQ <'rebase can handle submodules'>)}
        )
      ]
    )
    (C {(.)} {(./test-lib.sh)})
    (C {(.)} {(DQ ($ VSub_DollarName '$TEST_DIRECTORY')) (/lib-submodule-update.sh)})
    (C {(.)} {(DQ ($ VSub_DollarName '$TEST_DIRECTORY')) (/lib-rebase.sh)})
    (command.FuncDef
      name: git_rebase
      body: 
        (command.BraceGroup
          children: [
            (command.AndOr
              ops: [Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp]
              children: [
                (command.SimpleCommand
                  words: [{(git)} {(status)} {(-su)}]
                  redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})]
                )
                (command.SimpleCommand
                  words: [{(ls)} {(-1pR)} {(Lit_Other '*')}]
                  redirects: [(redir.Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(expect)})]
                )
                (C {(git)} {(checkout)} {(-b)} {(ours)} {(HEAD)})
                (command.SimpleCommand
                  words: [{(echo)} {(x)}]
                  redirects: [(redir.Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(file1)})]
                )
                (C {(git)} {(add)} {(file1)})
                (C {(git)} {(commit)} {(-m)} {(add_x)})
                (C {(git)} {(revert)} {(HEAD)})
                (command.SimpleCommand
                  words: [{(git)} {(status)} {(-su)}]
                  redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(actual)})]
                )
                (command.SimpleCommand
                  words: [{(ls)} {(-1pR)} {(Lit_Other '*')}]
                  redirects: [(redir.Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(actual)})]
                )
                (C {(test_cmp)} {(expect)} {(actual)})
                (C {(git)} {(rebase)} {(DQ ($ VSub_Number '$1'))})
              ]
            )
          ]
        )
    )
    (C {(test_submodule_switch)} {(DQ (git_rebase))})
    (command.FuncDef
      name: git_rebase_interactive
      body: 
        (command.BraceGroup
          children: [
            (command.AndOr
              ops: [
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
                Op_DAmp
              ]
              children: [
                (command.SimpleCommand
                  words: [{(git)} {(status)} {(-su)}]
                  redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expect)})]
                )
                (command.SimpleCommand
                  words: [{(ls)} {(-1pR)} {(Lit_Other '*')}]
                  redirects: [(redir.Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(expect)})]
                )
                (C {(git)} {(checkout)} {(-b)} {(ours)} {(HEAD)})
                (command.SimpleCommand
                  words: [{(echo)} {(x)}]
                  redirects: [(redir.Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(file1)})]
                )
                (C {(git)} {(add)} {(file1)})
                (C {(git)} {(commit)} {(-m)} {(add_x)})
                (C {(git)} {(revert)} {(HEAD)})
                (command.SimpleCommand
                  words: [{(git)} {(status)} {(-su)}]
                  redirects: [(redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(actual)})]
                )
                (command.SimpleCommand
                  words: [{(ls)} {(-1pR)} {(Lit_Other '*')}]
                  redirects: [(redir.Redir op:<Redir_DGreat '>>'> fd:16777215 arg_word:{(actual)})]
                )
                (C {(test_cmp)} {(expect)} {(actual)})
                (C {(set_fake_editor)})
                (command.SimpleCommand
                  words: [{(echo)} {(DQ (fake-editor.sh))}]
                  redirects: [
                    (redir.Redir
                      op: <Redir_Great '>'>
                      fd: 16777215
                      arg_word: {(.git/info/exclude)}
                    )
                  ]
                )
                (C {(git)} {(rebase)} {(-i)} {(DQ ($ VSub_Number '$1'))})
              ]
            )
          ]
        )
    )
    (command.Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (lhs_expr.LhsName name:KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR)
          op: Equal
          rhs: {(1)}
        )
      ]
    )
    (C {(test_submodule_switch)} {(DQ (git_rebase_interactive))})
    (C {(test_done)})
  ]
)