(command.CommandList
  children: [
    (C {<set>} {<-e>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:TMP)
          op: assign_op.Equal
          rhs: {<'/tmp/mtree.'> ($ Id.VSub_Dollar '$$')}
          spids: [33]
        )
      ]
    )
    (C {<rm>} {<-rf>} {(${ Id.VSub_Name TMP)})
    (C {<mkdir>} {<-p>} {(${ Id.VSub_Name TMP)} {(${ Id.VSub_Name TMP) <'/mr'>} 
      {(${ Id.VSub_Name TMP) <'/mt'>}
    )
    (C {<ln>} {<-s>} {(DQ <'xx this=is=wrong'>)} {(${ Id.VSub_Name TMP) <'/mr/foo'>})
    (command.Simple
      words: [{<mtree>} {<-c>} {<-p>} {(${ Id.VSub_Name TMP) <'/mr'>}]
      redirects: [
        (redir
          op: <Id.Redir_Great '>'>
          loc: (redir_loc.Fd fd:1)
          arg: {(${ Id.VSub_Name TMP) <'/_'>}
        )
      ]
      do_fork: T
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.Simple
                      words: [{<mtree>} {<-U>} {<-r>} {<-p>} {(${ Id.VSub_Name TMP) <'/mt'>}]
                      redirects: [
                        (redir
                          op: <Id.Redir_Less '<'>
                          loc: (redir_loc.Fd fd:0)
                          arg: {(${ Id.VSub_Name TMP) <'/_'>}
                        )
                        (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
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [(C {<true>})]
          spids: [98 129]
        )
      ]
      else_action: [
        (command.Simple
          words: [{<echo>} {(DQ <'ERROR Mtree failed on symlink with space char'>)}]
          redirects: [(redir op:<Id.Redir_GreatAnd '1>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
          do_fork: T
        )
        (C {<rm>} {<-rf>} {(${ Id.VSub_Name TMP)})
        (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:x)
          op: assign_op.Equal
          rhs: 
            {<x> 
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (command.AndOr
                    ops: [Id.Op_DPipe]
                    children: [
                      (command.Subshell
                        child: 
                          (command.CommandList
                            children: [
                              (command.Sentence
                                child: (C {<cd>} {(${ Id.VSub_Name TMP) <'/mr'>})
                                terminator: <Id.Op_Semi _>
                              )
                              (command.Simple
                                words: [{<ls>} {<-l>} {<foo>}]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_GreatAnd '2>&'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<1>}
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                          )
                      )
                      (C {<true>})
                    ]
                  )
              )
            }
          spids: [163]
        )
      ]
    )
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:y)
          op: assign_op.Equal
          rhs: 
            {<x> 
              (command_sub
                left_token: <Id.Left_Backtick '`'>
                child: 
                  (command.AndOr
                    ops: [Id.Op_DPipe]
                    children: [
                      (command.Subshell
                        child: 
                          (command.CommandList
                            children: [
                              (command.Sentence
                                child: (C {<cd>} {(${ Id.VSub_Name TMP) <'/mt'>})
                                terminator: <Id.Op_Semi _>
                              )
                              (command.Simple
                                words: [{<ls>} {<-l>} {<foo>}]
                                redirects: [
                                  (redir
                                    op: <Id.Redir_GreatAnd '2>&'>
                                    loc: (redir_loc.Fd fd:2)
                                    arg: {<1>}
                                  )
                                ]
                                do_fork: T
                              )
                            ]
                          )
                      )
                      (C {<true>})
                    ]
                  )
              )
            }
          spids: [193]
        )
      ]
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (C {<Id.Lit_LBracket '['>} {(DQ ($ Id.VSub_DollarName '$x'))} 
                      {<Id.KW_Bang '!'> <Id.Lit_Equals '='>} {(DQ ($ Id.VSub_DollarName '$y'))} {<Id.Lit_RBracket ']'>}
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [{<echo>} {(DQ <'ERROR Recreation of spaced symlink failed'>)}]
              redirects: [(redir op:<Id.Redir_GreatAnd '1>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (C {<rm>} {<-rf>} {(${ Id.VSub_Name TMP)})
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [224 243]
        )
      ]
    )
    (C {<rm>} {<-rf>} {(${ Id.VSub_Name TMP)})
    (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>})
  ]
)