(CommandList
  children: [
    (Sentence
      child: 
        (C {(.)} 
          {
            (DQ 
              (BracedVarSub
                token: <VSub_Name srcdir>
                suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(.)})
                spids: [47 51]
              ) (/tests/init.sh)
            )
          }
        )
      terminator: <Op_Semi ';'>
    )
    (C {(path_prepend_)} {(./src)})
    (C {(print_ver_)} {(mv)})
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:dir1) op:Equal rhs:{(is3-dir1)} spids:[65])]
      spids: [65]
    )
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:dir2) op:Equal rhs:{(is3-dir2)} spids:[68])]
      spids: [68]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (C {(mkdir)} {($ VSub_Name '$dir1')} {($ VSub_Name '$dir2')})
        (C {(framework_failure_)})
      ]
    )
    (AndOr
      ops: [Op_DAmp]
      children: [
        (SimpleCommand
          words: [{(mv)} {($ VSub_Name '$dir1')} {($ VSub_Name '$dir2')} {($ VSub_Name '$dir2')}]
          redirects: [
            (Redir op_id:Redir_Great fd:16777215 arg_word:{(out)} spids:[94])
            (Redir op_id:Redir_GreatAnd fd:2 arg_word:{(1)} spids:[98])
          ]
        )
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[103])]
          spids: [103]
        )
      ]
    )
    (SimpleCommand
      words: [
        {(sed)}
        {(-e)}
        {(DQ ('s,mv:,XXX:,g'))}
        {(-e)}
        {(DQ ('s,') ($ VSub_Name '$dir2') (',ZZZ,g'))}
        {(out)}
      ]
      redirects: [(Redir op_id:Redir_Great fd:16777215 arg_word:{(out2)} spids:[131])]
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:16777215 arg_word:{(exp)} spids:[138])
        (HereDoc
          op_id: Redir_DLess
          fd: 16777215
          body: {("XXX: cannot move 'ZZZ' to a subdirectory of itself, 'ZZZ/ZZZ'\n")}
          do_expansion: False
          here_end: EOF
          was_filled: T
          spids: [142]
        )
      ]
    )
    (AndOr
      ops: [Op_DPipe]
      children: [
        (C {(compare)} {(exp)} {(out2)})
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[155])]
          spids: [155]
        )
      ]
    )
    (C {(Exit)} {($ VSub_Name '$fail')})
  ]
)