(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:tid)
          op: assign_op.Equal
          rhs: {(DQ <localcommand>)}
          spids: [7]
        )
      ]
    )
    (command.Simple
      words: [{<echo>} {(SQ <'PermitLocalCommand yes'>)}]
      redirects: [
        (redir
          op: <Id.Redir_DGreat '>>'>
          loc: (redir_loc.Fd fd:1)
          arg: {($ Id.VSub_DollarName '$OBJ') <'/ssh_proxy'>}
        )
      ]
      do_fork: T
    )
    (command.Simple
      words: [{<echo>} {(SQ <'LocalCommand echo foo'>)}]
      redirects: [
        (redir
          op: <Id.Redir_DGreat '>>'>
          loc: (redir_loc.Fd fd:1)
          arg: {($ Id.VSub_DollarName '$OBJ') <'/ssh_proxy'>}
        )
      ]
      do_fork: T
    )
    (command.ForEach
      iter_name: p
      iter_words: [{(${ Id.VSub_Name SSH_PROTOCOLS)}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (C {<verbose>} 
              {
                (DQ <'test '> ($ Id.VSub_DollarName '$tid') <': proto '> ($ Id.VSub_DollarName '$p') 
                  <' localcommand'>
                )
              }
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:a)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_Backtick '`'>
                        child: 
                          (C {(${ Id.VSub_Name SSH)} {<-F>} 
                            {($ Id.VSub_DollarName '$OBJ') <'/ssh_proxy'>} {<-> ($ Id.VSub_DollarName '$p')} {<somehost>} {<true>}
                          )
                      )
                    }
                  spids: [61]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$a'))} 
                              {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ <foo>)} {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<fail>} 
                      {(DQ ($ Id.VSub_DollarName '$tid') <' proto '> ($ Id.VSub_DollarName '$p'))}
                    )
                  ]
                  spids: [83 102]
                )
              ]
            )
          ]
        )
    )
  ]
)