(CommandList
  children: [
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:test_description)
          op: Equal
          rhs: {(SQ <'rebase can handle submodules'>)}
          spids: [4]
        )
      ]
      spids: [4]
    )
    (C {(.)} {(./test-lib.sh)})
    (C {(.)} {(DQ ($ VSub_Name '$TEST_DIRECTORY')) (/lib-submodule-update.sh)})
    (C {(.)} {(DQ ($ VSub_Name '$TEST_DIRECTORY')) (/lib-rebase.sh)})
    (FuncDef
      name: git_rebase
      body: 
        (BraceGroup
          children: [
            (AndOr
              ops: [Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp Op_DAmp]
              children: [
                (SimpleCommand
                  words: [{(git)} {(status)} {(-su)}]
                  redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[43])]
                )
                (SimpleCommand
                  words: [{(ls)} {(-1pR)} {(Lit_Other '*')}]
                  redirects: [(Redir op_id:Redir_DGreat fd:16777215 arg_word:{(expect)} spids:[55])]
                )
                (C {(git)} {(checkout)} {(-b)} {(ours)} {(HEAD)})
                (SimpleCommand
                  words: [{(echo)} {(x)}]
                  redirects: [(Redir op_id:Redir_DGreat fd:16777215 arg_word:{(file1)} spids:[78])]
                )
                (C {(git)} {(add)} {(file1)})
                (C {(git)} {(commit)} {(-m)} {(add_x)})
                (C {(git)} {(revert)} {(HEAD)})
                (SimpleCommand
                  words: [{(git)} {(status)} {(-su)}]
                  redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(actual)} spids:[119])]
                )
                (SimpleCommand
                  words: [{(ls)} {(-1pR)} {(Lit_Other '*')}]
                  redirects: [(Redir op_id:Redir_DGreat fd:16777215 arg_word:{(actual)} spids:[131])]
                )
                (C {(test_cmp)} {(expect)} {(actual)})
                (C {(git)} {(rebase)} {(DQ ($ VSub_Number '$1'))})
              ]
            )
          ]
          spids: [34]
        )
      spids: [29 33]
    )
    (C {(test_submodule_switch)} {(DQ (git_rebase))})
    (FuncDef
      name: git_rebase_interactive
      body: 
        (BraceGroup
          children: [
            (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: [
                (SimpleCommand
                  words: [{(git)} {(status)} {(-su)}]
                  redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(expect)} spids:[178])]
                )
                (SimpleCommand
                  words: [{(ls)} {(-1pR)} {(Lit_Other '*')}]
                  redirects: [(Redir op_id:Redir_DGreat fd:16777215 arg_word:{(expect)} spids:[190])]
                )
                (C {(git)} {(checkout)} {(-b)} {(ours)} {(HEAD)})
                (SimpleCommand
                  words: [{(echo)} {(x)}]
                  redirects: [(Redir op_id:Redir_DGreat fd:16777215 arg_word:{(file1)} spids:[213])]
                )
                (C {(git)} {(add)} {(file1)})
                (C {(git)} {(commit)} {(-m)} {(add_x)})
                (C {(git)} {(revert)} {(HEAD)})
                (SimpleCommand
                  words: [{(git)} {(status)} {(-su)}]
                  redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(actual)} spids:[254])]
                )
                (SimpleCommand
                  words: [{(ls)} {(-1pR)} {(Lit_Other '*')}]
                  redirects: [(Redir op_id:Redir_DGreat fd:16777215 arg_word:{(actual)} spids:[266])]
                )
                (C {(test_cmp)} {(expect)} {(actual)})
                (C {(set_fake_editor)})
                (SimpleCommand
                  words: [{(echo)} {(DQ (fake-editor.sh))}]
                  redirects: [
                    (Redir
                      op_id: Redir_Great
                      fd: 16777215
                      arg_word: {(.git/info/exclude)}
                      spids: [292]
                    )
                  ]
                )
                (C {(git)} {(rebase)} {(-i)} {(DQ ($ VSub_Number '$1'))})
              ]
            )
          ]
          spids: [169]
        )
      spids: [164 168]
    )
    (Assignment
      keyword: Assign_None
      pairs: [
        (assign_pair
          lhs: (LhsName name:KNOWN_FAILURE_NOFF_MERGE_DOESNT_CREATE_EMPTY_SUBMODULE_DIR)
          op: Equal
          rhs: {(1)}
          spids: [311]
        )
      ]
      spids: [311]
    )
    (C {(test_submodule_switch)} {(DQ (git_rebase_interactive))})
    (C {(test_done)})
  ]
)