(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_>} {<cp>} {<mv>})
    (C {<skip_if_root_>})
    (command.ForEach
      iter_name: i
      iter_words: [{<cp>}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.Sentence
              child: (C {<rm>} {<-fr>} {<a>} {<d>})
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence child:(C {<touch>} {<a>}) terminator:<Id.Op_Semi _>)
            (C {<mkdir>} {<d>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.Simple
                  words: [{($ Id.VSub_DollarName '$i')} {<a>} {<a>} {<'d/'>}]
                  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: [130]
                    )
                  ]
                )
              ]
            )
            (command.Sentence
              child: (C {<rm>} {<-fr>} {<a>} {<d>})
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence child:(C {<touch>} {<a>}) terminator:<Id.Op_Semi _>)
            (C {<mkdir>} {<d>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.Simple
                  words: [{($ Id.VSub_DollarName '$i')} {<'./a'>} {<a>} {<'d/'>}]
                  redirects: [(redir op:<Id.Redir_DGreat '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: [167]
                    )
                  ]
                )
              ]
            )
            (command.Sentence
              child: (C {<rm>} {<-fr>} {<a>} {<d>})
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence child:(C {<touch>} {<a>}) terminator:<Id.Op_Semi _>)
            (C {<mkdir>} {<d>})
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.Simple
                  words: [
                    {($ Id.VSub_DollarName '$i')}
                    {<--backup> <Id.Lit_Equals '='> <numbered>}
                    {<a>}
                    {<a>}
                    {<'d/'>}
                  ]
                  redirects: [(redir op:<Id.Redir_DGreat '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: [213]
                    )
                  ]
                )
              ]
            )
            (command.Sentence
              child: (C {<rm>} {<-fr>} {<a>} {<d>})
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence child:(C {<touch>} {<a>}) terminator:<Id.Op_Semi _>)
            (C {<mkdir>} {<d>})
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.Simple
                  words: [{($ Id.VSub_DollarName '$i')} {<--backup>} {<a>} {<a>} {<'d/'>}]
                  redirects: [(redir op:<Id.Redir_DGreat '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: [257]
                    )
                  ]
                )
              ]
            )
            (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: 277
                      stdin_parts: [
                        ($ Id.VSub_DollarName '$i')
                        <': warning: source file \'a\' specified more than once\n'>
                        ($ Id.VSub_DollarName '$i')
                        <': warning: source file \'a\' specified more than once\n'>
                        ($ Id.VSub_DollarName '$i')
                        <': will not overwrite just-created \'d/a\' with \'a\'\n'>
                      ]
                    )
                )
                (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<exp>})
              ]
              do_fork: T
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<compare>} {<exp>} {<out>})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:fail)
                      op: assign_op.Equal
                      rhs: {<1>}
                      spids: [287]
                    )
                  ]
                )
              ]
            )
          ]
        )
    )
    (command.ForEach
      iter_name: i
      iter_words: [{<mv>}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.Sentence
              child: (C {<rm>} {<-fr>} {<a>} {<d>})
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence child:(C {<touch>} {<a>}) terminator:<Id.Op_Semi _>)
            (C {<mkdir>} {<d>})
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.Simple
                  words: [{($ Id.VSub_DollarName '$i')} {<a>} {<a>} {<'d/'>}]
                  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: [343]
                    )
                  ]
                )
              ]
            )
            (command.Sentence
              child: (C {<rm>} {<-fr>} {<a>} {<d>})
              terminator: <Id.Op_Semi _>
            )
            (command.Sentence child:(C {<touch>} {<a>}) terminator:<Id.Op_Semi _>)
            (C {<mkdir>} {<d>})
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.Simple
                  words: [{($ Id.VSub_DollarName '$i')} {<'./a'>} {<a>} {<'d/'>}]
                  redirects: [(redir op:<Id.Redir_DGreat '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: [380]
                    )
                  ]
                )
              ]
            )
            (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: 398
                      stdin_parts: [
                        ($ Id.VSub_DollarName '$i')
                        <': cannot stat \'a\': No such file or directory\n'>
                        ($ Id.VSub_DollarName '$i')
                        <': cannot stat \'a\': No such file or directory\n'>
                      ]
                    )
                )
                (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<exp>})
              ]
              do_fork: T
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (C {<compare>} {<exp>} {<out>})
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:fail)
                      op: assign_op.Equal
                      rhs: {<1>}
                      spids: [408]
                    )
                  ]
                )
              ]
            )
          ]
        )
    )
    (C {<Exit>} {($ Id.VSub_DollarName '$fail')})
  ]
)