(command.CommandList
  children: [
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (C {<.>} 
              {
                (DQ 
                  (braced_var_sub
                    token: <Id.VSub_Name srcdir>
                    suffix_op: (suffix_op.Unary tok:<Id.VTest_Equals '='> arg_word:{<.>})
                  ) <'/tests/init.sh'>
                )
              }
            )
          terminator: <Id.Op_Semi _>
        )
        (C {<path_prepend_>} {<'./src'>})
      ]
    )
    (C {<print_ver_>} {<mv>})
    (C {<skip_if_root_>})
    (command.ShFunction
      name: cleanup_
      body: 
        (BraceGroup
          children: [
            (command.Sentence
              child: 
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:t)
                      op: assign_op.Equal
                      rhs: {($ Id.VSub_DollarName '$other_partition_tmpdir')}
                      spids: [81]
                    )
                  ]
                )
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence
              child: (C {<chmod>} {<-R>} {<700>} {(DQ ($ Id.VSub_DollarName '$t'))})
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence
              child: (C {<rm>} {<-rf>} {(DQ ($ Id.VSub_DollarName '$t'))})
              terminator: <Id.Op_Semi _>
            )
          ]
        )
    )
    (C {<.>} {(DQ ($ Id.VSub_DollarName '$abs_srcdir') <'/tests/other-fs-tmpdir'>)})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<touch>} {<k>} {(DQ ($ Id.VSub_DollarName '$other_partition_tmpdir') <'/k'>)})
        (C {<framework_failure_>})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<chmod>} {<u-w>} {(DQ ($ Id.VSub_DollarName '$other_partition_tmpdir'))})
        (C {<framework_failure_>})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.Simple
          words: [{<mv>} {<-f>} {<k>} {(DQ ($ Id.VSub_DollarName '$other_partition_tmpdir'))}]
          redirects: [(redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<out>})]
          do_fork: T
        )
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:fail)
              op: assign_op.Equal
              rhs: {<1>}
              spids: [158]
            )
          ]
        )
      ]
    )
    (command.Simple
      words: [
        {<printf>}
        {(DQ <'mv: inter-device move failed: \'%s\' to \'%s\';'>) 
          (SQ <' unable to remove target: Permission denied\\n'>)
        }
        {<k>}
        {(DQ ($ Id.VSub_DollarName '$other_partition_tmpdir') <'/k'>)}
      ]
      redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<exp>})]
      do_fork: T
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.HereDoc
              here_begin: {<EOF>}
              here_end_span_id: 204
              stdin_parts: [
                <'mv: cannot move \'k\' to \''>
                ($ Id.VSub_DollarName '$other_partition_tmpdir')
                <'/k\': Permission denied\n'>
              ]
            )
        )
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<exp2>})
      ]
      do_fork: T
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      words: [{<cmp>} {<out>} {<exp>}]
                      redirects: [
                        (redir
                          op: <Id.Redir_Great '>'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<'/dev/null'>}
                        )
                        (redir
                          op: <Id.Redir_GreatAnd '2>&'>
                          loc: (redir_loc.Fd fd:2)
                          arg: {<1>}
                        )
                      ]
                      do_fork: T
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<Id.Lit_Colon ':'>})]
          spids: [206 221]
        )
      ]
      else_action: [
        (command.If
          arms: [
            (if_arm
              cond: 
                (condition.Shell
                  commands: [
                    (command.Sentence
                      child: (C {<cmp>} {<out>} {<exp2>})
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
              action: [(C {<Id.Lit_Colon ':'>})]
              spids: [229 238]
            )
          ]
          else_action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:fail)
                  op: assign_op.Equal
                  rhs: {<1>}
                  spids: [247]
                )
              ]
            )
          ]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {<test>} {($ Id.VSub_DollarName '$fail')} {<Id.Lit_Equals '='>} {<1>})
        (C {<compare>} {<exp>} {<out>})
      ]
    )
    (C {<Exit>} {($ Id.VSub_DollarName '$fail')})
  ]
)