(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [(assign_pair lhs:(sh_lhs_expr.Name name:MD) op:assign_op.Equal rhs:{<34>} spids:[7])]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:TMP)
          op: assign_op.Equal
          rhs: {<'/tmp/'> ($ Id.VSub_Dollar '$$')}
          spids: [10]
        )
      ]
    )
    (C {<set>} {<-e>})
    (command.ShAssignment
      pairs: [(assign_pair lhs:(sh_lhs_expr.Name name:r) op:assign_op.Equal rhs:{<0>} spids:[20])]
    )
    (command.Subshell
      child: (command.AndOr ops:[Id.Op_DAmp] children:[(C {<cd>} {<MdLoad>}) (C {<make>})])
      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>})
      ]
    )
    (command.ForEach
      iter_name: f
      iter_words: [{<'Data/disk.'> <Id.Lit_Star '*'> <.xml>}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:b)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: (C {<basename>} {($ Id.VSub_DollarName '$f')})
                      )
                    }
                  spids: [55]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DPipe]
              children: [
                (command.Simple
                  words: [{<mdconfig>} {<-d>} {<-u>} {($ Id.VSub_DollarName '$MD')}]
                  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
                )
                (C {<true>})
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-c>} {<'/dev/md'> ($ Id.VSub_DollarName '$MD')} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [(C {<sleep>} {<1>})]
                  spids: [85 98]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-c>} {<'/dev/md'> ($ Id.VSub_DollarName '$MD')} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [(C {<sleep>} {<1>})]
                  spids: [109 122]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-c>} {<'/dev/md'> ($ Id.VSub_DollarName '$MD')} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.Simple
                      words: [{<echo>} {(DQ <'/dev/md'> ($ Id.VSub_DollarName '$MD') <' is busy'>)}]
                      redirects: [
                        (redir
                          op: <Id.Redir_GreatAnd '1>&'>
                          loc: (redir_loc.Fd fd:1)
                          arg: {<2>}
                        )
                      ]
                      do_fork: T
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Exit exit>
                      arg_word: {<1>}
                    )
                  ]
                  spids: [133 146]
                )
              ]
            )
            (C {<'MdLoad/MdLoad'>} {<md> (${ Id.VSub_Name MD)} {($ Id.VSub_DollarName '$f')})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {<-f>} {<'Ref/'> ($ Id.VSub_DollarName '$b')} 
                              {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.Pipeline
                                      children: [
                                        (C {<diskinfo>} 
                                          {<'/dev/md'> (${ Id.VSub_Name MD) <Id.Lit_Star '*'>}
                                        )
                                        (command.Simple
                                          words: [
                                            {<diff>}
                                            {<-I>}
                                            {(SQ <'$FreeBSD'>)}
                                            {<-u>}
                                            {<'Ref/'> ($ Id.VSub_DollarName '$b')}
                                            {<->}
                                          ]
                                          redirects: [
                                            (redir
                                              op: <Id.Redir_Great '>'>
                                              loc: (redir_loc.Fd fd:1)
                                              arg: {($ Id.VSub_DollarName '$TMP')}
                                            )
                                          ]
                                          do_fork: T
                                        )
                                      ]
                                      negated: F
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [(C {<echo>} {(DQ <'PASSED: '> ($ Id.VSub_DollarName '$b'))})]
                          spids: [195 229]
                        )
                      ]
                      else_action: [
                        (C {<echo>} {(DQ <'FAILED: '> ($ Id.VSub_DollarName '$b'))})
                        (C {<sed>} {(SQ <'s/^/\t/'>)} {($ Id.VSub_DollarName '$TMP')})
                        (command.Sentence
                          child: 
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:r)
                                  op: assign_op.Equal
                                  rhs: {<2>}
                                  spids: [261]
                                )
                              ]
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  ]
                  spids: [179 192]
                )
              ]
              else_action: [
                (command.Simple
                  words: [{<diskinfo>} {<'/dev/md'> (${ Id.VSub_Name MD) <Id.Lit_Star '*'>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_Great '>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: 
                        {<'Ref/'> 
                          (command_sub
                            left_token: <Id.Left_Backtick '`'>
                            child: (C {<basename>} {($ Id.VSub_DollarName '$f')})
                          )
                        }
                    )
                  ]
                  do_fork: T
                )
              ]
            )
          ]
        )
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Simple
          words: [{<mdconfig>} {<-d>} {<-u>} {($ Id.VSub_DollarName '$MD')}]
          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
        )
        (C {<true>})
      ]
    )
    (C {<rm>} {<-f>} {($ Id.VSub_DollarName '$TMP')})
    (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{($ Id.VSub_DollarName '$r')})
  ]
)