(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:tid)
          op: assign_op.Equal
          rhs: {(DQ <'stderr data after eof'>)}
          spids: [7]
        )
      ]
    )
    (C {<rm>} {<-f>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
    (C {<cp>} {<'/dev/null'>} {(${ Id.VSub_Name DATA)})
    (command.ForEach
      iter_name: i
      iter_words: [{<1>} {<2>} {<3>} {<4>} {<5>} {<6>}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (command.Pipeline
              children: [
                (command.Subshell
                  child: 
                    (command.CommandList
                      children: [
                        (command.Sentence
                          child: (C {<date>})
                          terminator: <Id.Op_Semi _>
                        )
                        (C {<echo>} {($ Id.VSub_DollarName '$i')})
                      ]
                    )
                )
                (command.Simple
                  words: [{<md5>}]
                  redirects: [
                    (redir
                      op: <Id.Redir_DGreat '>>'>
                      loc: (redir_loc.Fd fd:1)
                      arg: {(${ Id.VSub_Name DATA)}
                    )
                  ]
                  do_fork: T
                )
              ]
              negated: F
            )
          ]
        )
    )
    (command.Simple
      words: [
        {(${ Id.VSub_Name SSH)}
        {<-2>}
        {<-F>}
        {($ Id.VSub_DollarName '$OBJ') <'/ssh_proxy'>}
        {<otherhost>}
        {<exec>}
        {<sh>}
        {<-c>}
        {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>) 
          (DQ <'exec > /dev/null; sleep 2; cat '> (${ Id.VSub_Name DATA) <' 1>&2 '> 
            ($ Id.VSub_DollarName '$s')
          ) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>)
        }
      ]
      redirects: [(redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{(${ Id.VSub_Name COPY)})]
      do_fork: T
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:r)
          op: assign_op.Equal
          rhs: {($ Id.VSub_QMark '$?')}
          spids: [119]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$r')} {<-ne>} {<0>} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<fail>} {(DQ <'ssh failed with exit code '> ($ Id.VSub_DollarName '$r'))})]
          spids: [122 135]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {<egrep>} {(SQ <'Disconnecting: Received extended_data after EOF'>)} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'ext data received after eof'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<cmp>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'stderr corrupt'>)})
      ]
    )
    (C {<rm>} {<-f>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
  ]
)