(command.CommandList
  children: [
    (command.CommandList
      children: [
        (command.Sentence
          child: 
            (C {<.>} 
              {
                (DQ 
                  (braced_var_sub
                    token: <Id.VSub_Name srcdir>
                    suffix_op: (suffix_op.Unary op_id:Id.VTest_Equals arg_word:{<.>})
                  ) <'/init.sh'>
                )
              }
            )
          terminator: <Id.Op_Semi _>
        )
        (C {<path_prepend_>} {<.>})
      ]
    )
    (command.ShAssignment
      pairs: [(assign_pair lhs:(sh_lhs_expr.Name name:fail) op:assign_op.Equal rhs:{<0>} spids:[68])]
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<Id.KW_In in>})
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.MultiLine
              here_begin: {<EOT>}
              here_end_span_id: 85
              stdin_parts: [<'foo*\n'> <'bar\n'> <'Baz\n'>]
            )
        )
      ]
      do_fork: T
    )
    (command.Simple
      words: [{<cat>}]
      redirects: [
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<expected>})
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.MultiLine
              here_begin: {<EOT>}
              here_end_span_id: 107
              stdin_parts: [
                <'foo: 0\n'>
                <'foo*: 1\n'>
                <'bar: 1\n'>
                <'foobar: 0\n'>
                <'baz: 1\n'>
                <'bar/qux: 0\n'>
              ]
            )
        )
      ]
      do_fork: T
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Simple
          words: [
            {<test-exclude>}
            {<-casefold>}
            {<Id.KW_In in>}
            {<-->}
            {<foo>}
            {(SQ <'foo*'>)}
            {<bar>}
            {<foobar>}
            {<baz>}
            {<'bar/qux'>}
          ]
          redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<out>})]
          do_fork: T
        )
        (command.ControlFlow
          token: <Id.ControlFlow_Exit exit>
          arg_word: {($ Id.VSub_QMark '$?')}
        )
      ]
    )
    (command.Case
      to_match: 
        {
          (command_sub
            left_token: <Id.Left_DollarParen '$('>
            child: 
              (command.Pipeline
                children: [(C {<echo>} {<r>}) (C {<tr>} {<-d>} {(SQ <'\\r'>)})]
                negated: F
              )
          )
        }
      arms: [
        (case_arm
          pat_list: [{(SQ )}]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:cr)
                  op: assign_op.Equal
                  rhs: {(SQ <'\\015'>)}
                  spids: [172]
                )
              ]
            )
          ]
          spids: [168 170 176 -1]
        )
        (case_arm
          pat_list: [{<Id.Lit_Star '*'>}]
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:cr)
                  op: assign_op.Equal
                  rhs: {(SQ <'\\r'>)}
                  spids: [181]
                )
              ]
            )
          ]
          spids: [178 179 185 -1]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.Simple
          words: [{<tr>} {<-d>} {(DQ ($ Id.VSub_DollarName '$cr'))}]
          redirects: [
            (redir op:<Id.Redir_Less '<'> loc:(redir_loc.Fd fd:0) arg:{<out>})
            (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<k>})
          ]
          more_env: [(env_pair name:LC_ALL val:{<C>} spids:[193])]
          do_fork: T
        )
        (C {<mv>} {<k>} {<out>})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<compare>} {<expected>} {<out>})
        (command.ShAssignment
          pairs: [
            (assign_pair
              lhs: (sh_lhs_expr.Name name:fail)
              op: assign_op.Equal
              rhs: {<1>}
              spids: [229]
            )
          ]
        )
      ]
    )
    (C {<Exit>} {($ Id.VSub_DollarName '$fail')})
  ]
)