(CommandList
  children: [
    (Sentence
      child: 
        (C {(.)} 
          {
            (DQ 
              (BracedVarSub
                token: <VSub_Name srcdir>
                suffix_op: (StringUnary op_id:VTest_Equals arg_word:{(.)})
                spids: [55 59]
              ) (/init.sh)
            )
          }
        )
      terminator: <Op_Semi ';'>
    )
    (C {(path_prepend_)} {(.)})
    (Assignment
      keyword: Assign_None
      pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(0)} spids:[68])]
      spids: [68]
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:-1 arg_word:{(KW_In in)} spids:[78])
        (HereDoc
          op_id: Redir_DLess
          fd: -1
          body: {(DQ ('foo*\n') ('bar\n') ('Baz\n'))}
          do_expansion: True
          here_end: EOT
          was_filled: True
          spids: [82]
        )
      ]
    )
    (SimpleCommand
      words: [{(cat)}]
      redirects: [
        (Redir op_id:Redir_Great fd:-1 arg_word:{(expected)} spids:[92])
        (HereDoc
          op_id: Redir_DLess
          fd: -1
          body: {(DQ ('foobar: 1\n'))}
          do_expansion: True
          here_end: EOT
          was_filled: True
          spids: [96]
        )
      ]
    )
    (AndOr
      children: [
        (SimpleCommand
          words: [{(test-exclude)} {(-wildcards)} {(KW_In in)} {(--)} {(foobar)}]
          redirects: [(Redir op_id:Redir_Great fd:-1 arg_word:{(out)} spids:[112])]
        )
        (C {(exit)} {($ VSub_QMark '$?')})
      ]
      op_id: Op_DPipe
    )
    (Case
      to_match: 
        {
          (CommandSubPart
            command_list: 
              (CommandList
                children: [
                  (Pipeline
                    children: [(C {(echo)} {(r)}) (C {(tr)} {(-d)} {(SQ <'\\r'>)})]
                    negated: False
                  )
                ]
              )
            left_token: <Left_CommandSub '$('>
            spids: [131 145]
          )
        }
      arms: [
        (case_arm
          pat_list: [{(SQ )}]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:cr) op:Equal rhs:{(SQ <'\\015'>)} spids:[153])]
              spids: [153]
            )
          ]
          spids: [-1 151 157 -1]
        )
        (case_arm
          pat_list: [{(Lit_Other '*')}]
          action: [
            (Assignment
              keyword: Assign_None
              pairs: [(assign_pair lhs:(LhsName name:cr) op:Equal rhs:{(SQ <'\\r'>)} spids:[162])]
              spids: [162]
            )
          ]
          spids: [159 160 166 -1]
        )
      ]
      spids: [129 147 168]
    )
    (AndOr
      children: [
        (SimpleCommand
          words: [{(tr)} {(-d)} {(DQ ($ VSub_Name '$cr'))}]
          redirects: [
            (Redir op_id:Redir_Less fd:-1 arg_word:{(out)} spids:[185])
            (Redir op_id:Redir_Great fd:-1 arg_word:{(k)} spids:[189])
          ]
          more_env: [(env_pair name:LC_ALL val:{(C)} spids:[174])]
        )
        (C {(mv)} {(k)} {(out)})
      ]
      op_id: Op_DAmp
    )
    (AndOr
      children: [
        (C {(compare)} {(expected)} {(out)})
        (Assignment
          keyword: Assign_None
          pairs: [(assign_pair lhs:(LhsName name:fail) op:Equal rhs:{(1)} spids:[210])]
          spids: [210]
        )
      ]
      op_id: Op_DPipe
    )
    (C {(Exit)} {($ VSub_Name '$fail')})
  ]
)