(command.CommandList
  children: [
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:CTL)
          op: assign_op.Equal
          rhs: {<'/tmp/openssh.regress.ctl-sock.'> ($ Id.VSub_Dollar '$$')}
          spids: [7]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:tid)
          op: assign_op.Equal
          rhs: {(DQ <'connection multiplexing'>)}
          spids: [12]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:NC)
          op: assign_op.Equal
          rhs: {($ Id.VSub_DollarName '$OBJ') <'/netcat'>}
          spids: [18]
        )
      ]
    )
    (C {<trace>} {(DQ <'will use ProxyCommand '> ($ Id.VSub_DollarName '$proxycmd'))})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: (C {<config_defined>} {<DISABLE_FD_PASSING>})
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (C {<echo>} {(DQ <'skipped (not supported on this platform)'>)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
          ]
          spids: [30 38]
        )
      ]
    )
    (command.ShAssignment
      pairs: [(assign_pair lhs:(sh_lhs_expr.Name name:P) op:assign_op.Equal rhs:{<3301>} spids:[55])]
    )
    (command.ShFunction
      name: wait_for_mux_master_ready
      body: 
        (BraceGroup
          children: [
            (command.ForEach
              iter_name: i
              iter_words: [{<1>} {<2>} {<3>} {<4>} {<5>}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.Simple
                          words: [
                            {(${ Id.VSub_Name SSH)}
                            {<-F>}
                            {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
                            {<-S>}
                            {($ Id.VSub_DollarName '$CTL')}
                            {<-Ocheck>}
                            {<otherhost>}
                          ]
                          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
                        )
                        (command.ControlFlow
                          token: <Id.ControlFlow_Return return>
                          arg_word: {<0>}
                        )
                      ]
                    )
                    (C {<sleep>} {($ Id.VSub_DollarName '$i')})
                  ]
                )
            )
            (C {<fatal>} {(DQ <'mux master never becomes ready'>)})
          ]
        )
    )
    (C {<start_sshd>})
    (command.ShFunction
      name: start_mux_master
      body: 
        (BraceGroup
          children: [
            (C {<trace>} {(DQ <'start master, fork to background'>)})
            (command.Sentence
              child: 
                (command.Simple
                  words: [
                    {(${ Id.VSub_Name SSH)}
                    {<-Nn2>}
                    {<-MS> ($ Id.VSub_DollarName '$CTL')}
                    {<-F>}
                    {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
                    {<-oSendEnv> <Id.Lit_Equals '='> (DQ <_XXX_TEST>)}
                    {<somehost>}
                    {<-E>}
                    {($ Id.VSub_DollarName '$TEST_REGRESS_LOGFILE')}
                  ]
                  redirects: [(redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})]
                  do_fork: T
                )
              terminator: <Id.Op_Amp _>
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:SSH_PID)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_Bang '$!')}
                  spids: [193]
                )
              ]
            )
            (C {<wait_for_mux_master_ready>})
          ]
        )
    )
    (C {<start_mux_master>})
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': envpass'>)})
    (C {<trace>} {(DQ <'env passing over multiplexed connection'>)})
    (command.Simple
      words: [
        {(${ Id.VSub_Name SSH)}
        {<-F>}
        {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
        {<-oSendEnv> <Id.Lit_Equals '='> (DQ <_XXX_TEST>)}
        {<-S> ($ Id.VSub_DollarName '$CTL')}
        {<otherhost>}
        {<sh>}
      ]
      redirects: [
        (redir
          op: <Id.Redir_DLess '<<'>
          loc: (redir_loc.Fd fd:0)
          arg: 
            (redir_param.HereDoc
              here_begin: {(SQ <EOF>)}
              here_end_span_id: 251
              stdin_parts: [<'\ttest X"$_XXX_TEST" = X"blah"\n'>]
            )
        )
      ]
      more_env: [(env_pair name:_XXX_TEST val:{<blah>} spids:[219])]
      do_fork: T
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {($ Id.VSub_QMark '$?')} {<-ne>} {<0>} 
                      {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<fail>} {(DQ <'environment not found'>)})]
          spids: [252 265]
        )
      ]
    )
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': transfer'>)})
    (C {<rm>} {<-f>} {(${ Id.VSub_Name COPY)})
    (C {<trace>} {(DQ <'ssh transfer over multiplexed connection and check result'>)})
    (command.Simple
      words: [
        {(${ Id.VSub_Name SSH)}
        {<-F>}
        {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
        {<-S> ($ Id.VSub_DollarName '$CTL')}
        {<otherhost>}
        {<cat>}
        {(${ Id.VSub_Name DATA)}
      ]
      redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{(${ Id.VSub_Name COPY)})]
      do_fork: T
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<test>} {<-f>} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'ssh -Sctl: failed copy '> (${ Id.VSub_Name DATA))})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<cmp>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'ssh -Sctl: corrupted copy of '> (${ Id.VSub_Name DATA))})
      ]
    )
    (C {<rm>} {<-f>} {(${ Id.VSub_Name COPY)})
    (C {<trace>} {(DQ <'ssh transfer over multiplexed connection and check result'>)})
    (command.Simple
      words: [
        {(${ Id.VSub_Name SSH)}
        {<-F>}
        {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
        {<-S>}
        {($ Id.VSub_DollarName '$CTL')}
        {<otherhost>}
        {<cat>}
        {(${ Id.VSub_Name DATA)}
      ]
      redirects: [(redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{(${ Id.VSub_Name COPY)})]
      do_fork: T
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<test>} {<-f>} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'ssh -S ctl: failed copy '> (${ Id.VSub_Name DATA))})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<cmp>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'ssh -S ctl: corrupted copy of '> (${ Id.VSub_Name DATA))})
      ]
    )
    (C {<rm>} {<-f>} {(${ Id.VSub_Name COPY)})
    (C {<trace>} {(DQ <'sftp transfer over multiplexed connection and check result'>)})
    (command.Pipeline
      children: [
        (C {<echo>} {(DQ <'get '> (${ Id.VSub_Name DATA) <' '> (${ Id.VSub_Name COPY))})
        (command.Simple
          words: [
            {(${ Id.VSub_Name SFTP)}
            {<-S>}
            {(${ Id.VSub_Name SSH)}
            {<-F>}
            {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
            {<-oControlPath> <Id.Lit_Equals '='> ($ Id.VSub_DollarName '$CTL')}
            {<otherhost>}
          ]
          redirects: [
            (redir
              op: <Id.Redir_DGreat '>>'>
              loc: (redir_loc.Fd fd:1)
              arg: {($ Id.VSub_DollarName '$TEST_REGRESS_LOGFILE')}
            )
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          do_fork: T
        )
      ]
      negated: F
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<test>} {<-f>} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'sftp: failed copy '> (${ Id.VSub_Name DATA))})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<cmp>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'sftp: corrupted copy of '> (${ Id.VSub_Name DATA))})
      ]
    )
    (C {<rm>} {<-f>} {(${ Id.VSub_Name COPY)})
    (C {<trace>} {(DQ <'scp transfer over multiplexed connection and check result'>)})
    (command.Simple
      words: [
        {(${ Id.VSub_Name SCP)}
        {<-S>}
        {(${ Id.VSub_Name SSH)}
        {<-F>}
        {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
        {<-oControlPath> <Id.Lit_Equals '='> ($ Id.VSub_DollarName '$CTL')}
        {<otherhost> <Id.Lit_Colon ':'> (${ Id.VSub_Name DATA)}
        {(${ Id.VSub_Name COPY)}
      ]
      redirects: [
        (redir
          op: <Id.Redir_DGreat '>>'>
          loc: (redir_loc.Fd fd:1)
          arg: {($ Id.VSub_DollarName '$TEST_REGRESS_LOGFILE')}
        )
        (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
      ]
      do_fork: T
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<test>} {<-f>} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'scp: failed copy '> (${ Id.VSub_Name DATA))})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<cmp>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'scp: corrupted copy of '> (${ Id.VSub_Name DATA))})
      ]
    )
    (C {<rm>} {<-f>} {(${ Id.VSub_Name COPY)})
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': forward'>)})
    (C {<trace>} {(DQ <'forward over TCP/IP and check result'>)})
    (command.Sentence
      child: 
        (command.Simple
          words: [
            {($ Id.VSub_DollarName '$NC')}
            {<-N>}
            {<-l>}
            {<127.0.0.1>}
            {
              (word_part.ArithSub
                anode: 
                  (arith_expr.Binary
                    op_id: Id.Arith_Plus
                    left: {(${ Id.VSub_Name PORT)}
                    right: {<Id.Lit_Digits 1>}
                  )
              )
            }
          ]
          redirects: [
            (redir
              op: <Id.Redir_Less '<'>
              loc: (redir_loc.Fd fd:0)
              arg: {(${ Id.VSub_Name DATA)}
            )
            (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>})
          ]
          do_fork: T
        )
      terminator: <Id.Op_Amp _>
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:netcat_pid)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Bang '$!')}
          spids: [694]
        )
      ]
    )
    (command.Simple
      words: [
        {(${ Id.VSub_Name SSH)}
        {<-F>}
        {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
        {<-S>}
        {($ Id.VSub_DollarName '$CTL')}
        {<-Oforward>}
        {<-L127.0.0.1> <Id.Lit_Colon ':'> 
          (word_part.ArithSub
            anode: 
              (arith_expr.Binary
                op_id: Id.Arith_Plus
                left: {(${ Id.VSub_Name PORT)}
                right: {<Id.Lit_Digits 2>}
              )
          ) <Id.Lit_Colon ':'> <127.0.0.1> <Id.Lit_Colon ':'> 
          (word_part.ArithSub
            anode: 
              (arith_expr.Binary
                op_id: Id.Arith_Plus
                left: {(${ Id.VSub_Name PORT)}
                right: {<Id.Lit_Digits 1>}
              )
          )
        }
        {<otherhost>}
      ]
      redirects: [
        (redir
          op: <Id.Redir_DGreat '>>'>
          loc: (redir_loc.Fd fd:1)
          arg: {($ Id.VSub_DollarName '$TEST_SSH_LOGFILE')}
        )
        (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
      ]
      do_fork: T
    )
    (command.Simple
      words: [
        {($ Id.VSub_DollarName '$NC')}
        {<127.0.0.1>}
        {
          (word_part.ArithSub
            anode: 
              (arith_expr.Binary
                op_id: Id.Arith_Plus
                left: {(${ Id.VSub_Name PORT)}
                right: {<Id.Lit_Digits 2>}
              )
          )
        }
      ]
      redirects: [
        (redir op:<Id.Redir_Less '<'> loc:(redir_loc.Fd fd:0) arg:{<'/dev/null'>})
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{(${ Id.VSub_Name COPY)})
      ]
      do_fork: T
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<cmp>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'ssh: corrupted copy of '> (${ Id.VSub_Name DATA))})
      ]
    )
    (command.Simple
      words: [{<kill>} {($ Id.VSub_DollarName '$netcat_pid')}]
      redirects: [(redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})]
      do_fork: T
    )
    (C {<rm>} {<-f>} {(${ Id.VSub_Name COPY)} 
      {($ Id.VSub_DollarName '$OBJ') <'/unix-'> <Id.Lit_LBracket '['> <123> <Id.Lit_RBracket ']'> <.fwd>}
    )
    (C {<trace>} {(DQ <'forward over UNIX and check result'>)})
    (command.Sentence
      child: 
        (command.Simple
          words: [
            {($ Id.VSub_DollarName '$NC')}
            {<-N>}
            {<-Ul>}
            {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'>}
          ]
          redirects: [
            (redir
              op: <Id.Redir_Less '<'>
              loc: (redir_loc.Fd fd:0)
              arg: {(${ Id.VSub_Name DATA)}
            )
            (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{<'/dev/null'>})
          ]
          do_fork: T
        )
      terminator: <Id.Op_Amp _>
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:netcat_pid)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Bang '$!')}
          spids: [842]
        )
      ]
    )
    (command.Simple
      words: [
        {(${ Id.VSub_Name SSH)}
        {<-F>}
        {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
        {<-S>}
        {($ Id.VSub_DollarName '$CTL')}
        {<-Oforward>}
        {<-L> ($ Id.VSub_DollarName '$OBJ') <'/unix-2.fwd'> <Id.Lit_Colon ':'> 
          ($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'>
        }
        {<otherhost>}
      ]
      redirects: [
        (redir
          op: <Id.Redir_DGreat '>>'>
          loc: (redir_loc.Fd fd:1)
          arg: {($ Id.VSub_DollarName '$TEST_SSH_LOGFILE')}
        )
        (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
      ]
      do_fork: T
    )
    (command.Simple
      words: [
        {(${ Id.VSub_Name SSH)}
        {<-F>}
        {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
        {<-S>}
        {($ Id.VSub_DollarName '$CTL')}
        {<-Oforward>}
        {<-R> ($ Id.VSub_DollarName '$OBJ') <'/unix-3.fwd'> <Id.Lit_Colon ':'> 
          ($ Id.VSub_DollarName '$OBJ') <'/unix-2.fwd'>
        }
        {<otherhost>}
      ]
      redirects: [
        (redir
          op: <Id.Redir_DGreat '>>'>
          loc: (redir_loc.Fd fd:1)
          arg: {($ Id.VSub_DollarName '$TEST_SSH_LOGFILE')}
        )
        (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
      ]
      do_fork: T
    )
    (command.Simple
      words: [{($ Id.VSub_DollarName '$NC')} {<-U>} {($ Id.VSub_DollarName '$OBJ') <'/unix-3.fwd'>}]
      redirects: [
        (redir op:<Id.Redir_Less '<'> loc:(redir_loc.Fd fd:0) arg:{<'/dev/null'>})
        (redir op:<Id.Redir_Great '>'> loc:(redir_loc.Fd fd:1) arg:{(${ Id.VSub_Name COPY)})
        (redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})
      ]
      do_fork: T
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<cmp>} {(${ Id.VSub_Name DATA)} {(${ Id.VSub_Name COPY)})
        (C {<fail>} {(DQ <'ssh: corrupted copy of '> (${ Id.VSub_Name DATA))})
      ]
    )
    (command.Simple
      words: [{<kill>} {($ Id.VSub_DollarName '$netcat_pid')}]
      redirects: [(redir op:<Id.Redir_Great '2>'> loc:(redir_loc.Fd fd:2) arg:{<'/dev/null'>})]
      do_fork: T
    )
    (C {<rm>} {<-f>} {(${ Id.VSub_Name COPY)} 
      {($ Id.VSub_DollarName '$OBJ') <'/unix-'> <Id.Lit_LBracket '['> <123> <Id.Lit_RBracket ']'> <.fwd>}
    )
    (command.ForEach
      iter_name: s
      iter_words: [{<0>} {<1>} {<4>} {<5>} {<44>}]
      do_arg_iter: F
      body: 
        (command.DoGroup
          children: [
            (C {<trace>} 
              {(DQ <'exit status '> ($ Id.VSub_DollarName '$s') <' over multiplexed connection'>)}
            )
            (C {<verbose>} 
              {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': status '> ($ Id.VSub_DollarName '$s'))}
            )
            (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
              {($ Id.VSub_DollarName '$CTL')} {<otherhost>} {<Id.ControlFlow_Exit exit>} {($ Id.VSub_DollarName '$s')}
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:r)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_QMark '$?')}
                  spids: [1028]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$r')} {<-ne>} 
                              {($ Id.VSub_DollarName '$s')} {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<fail>} 
                      {
                        (DQ <'exit code mismatch for protocol '> ($ Id.VSub_DollarName '$p') <': '> 
                          ($ Id.VSub_DollarName '$r') <' != '> ($ Id.VSub_DollarName '$s')
                        )
                      }
                    )
                  ]
                  spids: [1032 1045]
                )
              ]
            )
            (C {<trace>} 
              {
                (DQ <'exit status '> ($ Id.VSub_DollarName '$s') 
                  <' with early close over multiplexed connection'>
                )
              }
            )
            (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
              {($ Id.VSub_DollarName '$CTL')} {<-n>} {<otherhost>} {<exec>} {<sh>} {<-c>} 
              {(word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>) 
                (DQ <'sleep 2; exec > /dev/null 2>&1; sleep 3; exit '> ($ Id.VSub_DollarName '$s')) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\''>)
              }
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:r)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_QMark '$?')}
                  spids: [1110]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName '$r')} {<-ne>} 
                              {($ Id.VSub_DollarName '$s')} {<Id.Lit_RBracket ']'>}
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<fail>} 
                      {
                        (DQ <'exit code (with sleep) mismatch for protocol '> 
                          ($ Id.VSub_DollarName '$p') <': '> ($ Id.VSub_DollarName '$r') <' != '> ($ Id.VSub_DollarName '$s')
                        )
                      }
                    )
                  ]
                  spids: [1114 1127]
                )
              ]
            )
          ]
        )
    )
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': cmd check'>)})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Simple
          words: [
            {(${ Id.VSub_Name SSH)}
            {<-F>}
            {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
            {<-S>}
            {($ Id.VSub_DollarName '$CTL')}
            {<-Ocheck>}
            {<otherhost>}
          ]
          redirects: [
            (redir
              op: <Id.Redir_DGreat '>>'>
              loc: (redir_loc.Fd fd:1)
              arg: {($ Id.VSub_DollarName '$TEST_REGRESS_LOGFILE')}
            )
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          do_fork: T
        )
        (C {<fail>} {(DQ <'check command failed'>)})
      ]
    )
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': cmd forward local (TCP)'>)})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
          {($ Id.VSub_DollarName '$CTL')} {<-Oforward>} {<-L>} 
          {($ Id.VSub_DollarName '$P') <Id.Lit_Colon ':'> <localhost> <Id.Lit_Colon ':'> 
            ($ Id.VSub_DollarName '$PORT')
          } {<otherhost>}
        )
        (C {<fail>} {(DQ <'request local forward failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} 
          {<-p> ($ Id.VSub_DollarName '$P')} {<otherhost>} {<true>}
        )
        (C {<fail>} {(DQ <'connect to local forward port failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
          {($ Id.VSub_DollarName '$CTL')} {<-Ocancel>} {<-L>} 
          {($ Id.VSub_DollarName '$P') <Id.Lit_Colon ':'> <localhost> <Id.Lit_Colon ':'> 
            ($ Id.VSub_DollarName '$PORT')
          } {<otherhost>}
        )
        (C {<fail>} {(DQ <'cancel local forward failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} 
          {<-p> ($ Id.VSub_DollarName '$P')} {<otherhost>} {<true>}
        )
        (C {<fail>} {(DQ <'local forward port still listening'>)})
      ]
    )
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': cmd forward remote (TCP)'>)})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
          {($ Id.VSub_DollarName '$CTL')} {<-Oforward>} {<-R>} 
          {($ Id.VSub_DollarName '$P') <Id.Lit_Colon ':'> <localhost> <Id.Lit_Colon ':'> 
            ($ Id.VSub_DollarName '$PORT')
          } {<otherhost>}
        )
        (C {<fail>} {(DQ <'request remote forward failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} 
          {<-p> ($ Id.VSub_DollarName '$P')} {<otherhost>} {<true>}
        )
        (C {<fail>} {(DQ <'connect to remote forwarded port failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
          {($ Id.VSub_DollarName '$CTL')} {<-Ocancel>} {<-R>} 
          {($ Id.VSub_DollarName '$P') <Id.Lit_Colon ':'> <localhost> <Id.Lit_Colon ':'> 
            ($ Id.VSub_DollarName '$PORT')
          } {<otherhost>}
        )
        (C {<fail>} {(DQ <'cancel remote forward failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} 
          {<-p> ($ Id.VSub_DollarName '$P')} {<otherhost>} {<true>}
        )
        (C {<fail>} {(DQ <'remote forward port still listening'>)})
      ]
    )
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': cmd forward local (UNIX)'>)})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
          {($ Id.VSub_DollarName '$CTL')} {<-Oforward>} {<-L>} 
          {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'> <Id.Lit_Colon ':'> <localhost> 
            <Id.Lit_Colon ':'> ($ Id.VSub_DollarName '$PORT')
          } {<otherhost>}
        )
        (C {<fail>} {(DQ <'request local forward failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Pipeline
          children: [
            (C {<echo>} {(DQ )})
            (C {($ Id.VSub_DollarName '$NC')} {<-U>} {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'>})
            (command.Simple
              words: [{<grep>} {(DQ <'Protocol mismatch'>)}]
              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
            )
          ]
          negated: F
        )
        (C {<fail>} {(DQ <'connect to local forward path failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
          {($ Id.VSub_DollarName '$CTL')} {<-Ocancel>} {<-L>} 
          {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'> <Id.Lit_Colon ':'> <localhost> 
            <Id.Lit_Colon ':'> ($ Id.VSub_DollarName '$PORT')
          } {<otherhost>}
        )
        (C {<fail>} {(DQ <'cancel local forward failed'>)})
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:N)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Pipeline
                    children: [
                      (C {<echo>} {(DQ <xyzzy>)})
                      (command.Simple
                        words: [
                          {($ Id.VSub_DollarName '$NC')}
                          {<-U>}
                          {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'>}
                        ]
                        redirects: [
                          (redir
                            op: <Id.Redir_GreatAnd '2>&'>
                            loc: (redir_loc.Fd fd:2)
                            arg: {<1>}
                          )
                        ]
                        do_fork: T
                      )
                      (C {<grep>} {(DQ <xyzzy>)})
                      (C {<wc>} {<-l>})
                    ]
                    negated: F
                  )
              )
            }
          spids: [1570]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<test>} {(${ Id.VSub_Name N)} {<-eq>} {<0>})
        (C {<fail>} {(DQ <'local forward path still listening'>)})
      ]
    )
    (C {<rm>} {<-f>} {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'>})
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': cmd forward remote (UNIX)'>)})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
          {($ Id.VSub_DollarName '$CTL')} {<-Oforward>} {<-R>} 
          {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'> <Id.Lit_Colon ':'> <localhost> 
            <Id.Lit_Colon ':'> ($ Id.VSub_DollarName '$PORT')
          } {<otherhost>}
        )
        (C {<fail>} {(DQ <'request remote forward failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Pipeline
          children: [
            (C {<echo>} {(DQ )})
            (C {($ Id.VSub_DollarName '$NC')} {<-U>} {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'>})
            (command.Simple
              words: [{<grep>} {(DQ <'Protocol mismatch'>)}]
              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
            )
          ]
          negated: F
        )
        (C {<fail>} {(DQ <'connect to remote forwarded path failed'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {(${ Id.VSub_Name SSH)} {<-F>} {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>} {<-S>} 
          {($ Id.VSub_DollarName '$CTL')} {<-Ocancel>} {<-R>} 
          {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'> <Id.Lit_Colon ':'> <localhost> 
            <Id.Lit_Colon ':'> ($ Id.VSub_DollarName '$PORT')
          } {<otherhost>}
        )
        (C {<fail>} {(DQ <'cancel remote forward failed'>)})
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:N)
          op: assign_op.Equal
          rhs: 
            {
              (command_sub
                left_token: <Id.Left_DollarParen '$('>
                child: 
                  (command.Pipeline
                    children: [
                      (C {<echo>} {(DQ <xyzzy>)})
                      (command.Simple
                        words: [
                          {($ Id.VSub_DollarName '$NC')}
                          {<-U>}
                          {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'>}
                        ]
                        redirects: [
                          (redir
                            op: <Id.Redir_GreatAnd '2>&'>
                            loc: (redir_loc.Fd fd:2)
                            arg: {<1>}
                          )
                        ]
                        do_fork: T
                      )
                      (C {<grep>} {(DQ <xyzzy>)})
                      (C {<wc>} {<-l>})
                    ]
                    negated: F
                  )
              )
            }
          spids: [1749]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<test>} {(${ Id.VSub_Name N)} {<-eq>} {<0>})
        (C {<fail>} {(DQ <'remote forward path still listening'>)})
      ]
    )
    (C {<rm>} {<-f>} {($ Id.VSub_DollarName '$OBJ') <'/unix-1.fwd'>})
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': cmd exit'>)})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Simple
          words: [
            {(${ Id.VSub_Name SSH)}
            {<-F>}
            {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
            {<-S>}
            {($ Id.VSub_DollarName '$CTL')}
            {<-Oexit>}
            {<otherhost>}
          ]
          redirects: [
            (redir
              op: <Id.Redir_DGreat '>>'>
              loc: (redir_loc.Fd fd:1)
              arg: {($ Id.VSub_DollarName '$TEST_REGRESS_LOGFILE')}
            )
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          do_fork: T
        )
        (C {<fail>} {(DQ <'send exit command failed'>)})
      ]
    )
    (C {<wait>} {($ Id.VSub_DollarName '$SSH_PID')})
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.Simple
          words: [{<kill>} {<-0>} {($ Id.VSub_DollarName '$SSH_PID')}]
          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 {<fail>} {(DQ <'exit command failed'>)})
      ]
    )
    (C {<verbose>} {(DQ <'test '> ($ Id.VSub_DollarName '$tid') <': cmd stop'>)})
    (C {<trace>} {(DQ <'restart master, fork to background'>)})
    (C {<start_mux_master>})
    (command.Sentence
      child: 
        (command.Simple
          words: [
            {(${ Id.VSub_Name SSH)}
            {<-F>}
            {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
            {<-S>}
            {($ Id.VSub_DollarName '$CTL')}
            {<otherhost>}
            {(DQ <'sleep 10; exit 0'>)}
          ]
          redirects: [
            (redir
              op: <Id.Redir_DGreat '>>'>
              loc: (redir_loc.Fd fd:1)
              arg: {($ Id.VSub_DollarName '$TEST_REGRESS_LOGFILE')}
            )
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          do_fork: T
        )
      terminator: <Id.Op_Amp _>
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:SLEEP_PID)
          op: assign_op.Equal
          rhs: {($ Id.VSub_Bang '$!')}
          spids: [1933]
        )
      ]
    )
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (command.Simple
          words: [
            {(${ Id.VSub_Name SSH)}
            {<-F>}
            {($ Id.VSub_DollarName '$OBJ') <'/ssh_config'>}
            {<-S>}
            {($ Id.VSub_DollarName '$CTL')}
            {<-Ostop>}
            {<otherhost>}
          ]
          redirects: [
            (redir
              op: <Id.Redir_DGreat '>>'>
              loc: (redir_loc.Fd fd:1)
              arg: {($ Id.VSub_DollarName '$TEST_REGRESS_LOGFILE')}
            )
            (redir op:<Id.Redir_GreatAnd '2>&'> loc:(redir_loc.Fd fd:2) arg:{<1>})
          ]
          do_fork: T
        )
        (C {<fail>} {(DQ <'send stop command failed'>)})
      ]
    )
    (C {<wait>} {($ Id.VSub_DollarName '$SLEEP_PID')})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Bang '$!')} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>} 
          {<Id.Lit_RBracket ']'>}
        )
        (C {<fail>} {(DQ <'waiting for concurrent command'>)})
      ]
    )
    (C {<wait>} {($ Id.VSub_DollarName '$SSH_PID')})
    (command.AndOr
      ops: [Id.Op_DPipe]
      children: [
        (C {<Id.Lit_LBracket '['>} {($ Id.VSub_Bang '$!')} {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {<0>} 
          {<Id.Lit_RBracket ']'>}
        )
        (C {<fail>} {(DQ <'waiting for master stop'>)})
      ]
    )
    (command.AndOr
      ops: [Id.Op_DAmp]
      children: [
        (command.Simple
          words: [{<kill>} {<-0>} {($ Id.VSub_DollarName '$SSH_PID')}]
          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 {<fatal>} {(DQ <'stop command failed'>)})
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:SSH_PID)
          op: assign_op.Equal
          rhs: {(DQ )}
          spids: [2039]
        )
      ]
    )
  ]
)