(command.CommandList
  children: [
    (command.ShFunction
      name: _Dbg_msg
      body: 
        (BraceGroup
          children: [
            (command.Simple
              words: [{<echo>} {($ Id.VSub_At '$@')}]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
          ]
        )
    )
    (command.ShFunction
      name: _Dbg_errmsg
      body: 
        (BraceGroup
          children: [
            (command.Simple
              words: [{<echo>} {(DQ (${ Id.VSub_Name _Dbg_pname) <': '> ($ Id.VSub_At '$@'))}]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
          ]
        )
    )
    (command.ShFunction
      name: _Dbg_do_show_version
      body: 
        (BraceGroup
          children: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DBracket
                  expr: (bool_expr.Unary op_id:Id.BoolUnary_n child:{($ Id.VSub_Number '$1')})
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:label)
                      op: assign_op.Equal
                      rhs: 
                        {
                          (command_sub
                            left_token: <Id.Left_DollarParen '$('>
                            child: (C {<_Dbg_printf_nocr>} {(DQ <'%-12s: '>)} {<version>})
                          )
                        }
                      spids: [148]
                    )
                  ]
                )
              ]
            )
            (C {<_Dbg_msg>} 
              {
                (DQ (${ Id.VSub_Name label) ($ Id.VSub_DollarName '$_Dbg_debugger_name') <', release '> 
                  ($ Id.VSub_DollarName '$_Dbg_release')
                )
              }
            )
          ]
        )
    )
    (command.ShFunction
      name: _Dbg_expand_filename
      body: 
        (BraceGroup
          children: [
            (C {<typeset>} {<-r>} {<Id.Lit_VarLike 'filename='> (DQ ($ Id.VSub_Number '$1'))})
            (C {<typeset>} 
              {<Id.Lit_VarLike 'basename='> 
                (DQ 
                  (braced_var_sub
                    token: <Id.VSub_Name filename>
                    suffix_op: 
                      (suffix_op.Unary
                        tok: <Id.VOp1_DPound '##'>
                        arg_word: {<Id.Lit_Other '*'> <Id.Lit_Slash '/'>}
                      )
                  )
                )
              }
            )
            (C {<typeset>} {<-x>} 
              {<Id.Lit_VarLike 'dirname='> 
                (DQ 
                  (braced_var_sub
                    token: <Id.VSub_Name filename>
                    suffix_op: 
                      (suffix_op.Unary
                        tok: <Id.VOp1_Percent '%'>
                        arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
                      )
                  )
                )
              }
            )
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.Binary
                      op_id: Id.BoolBinary_GlobDEqual
                      left: {($ Id.VSub_DollarName '$dirname')}
                      right: {($ Id.VSub_DollarName '$basename')}
                    )
                )
                (command.DBracket
                  expr: 
                    (bool_expr.Binary
                      op_id: Id.BoolBinary_GlobNEqual
                      left: {($ Id.VSub_DollarName '$filename')}
                      right: {(SQ <'/'>)}
                    )
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:dirname)
                      op: assign_op.Equal
                      rhs: {(SQ <.>)}
                      spids: [277]
                    )
                  ]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:dirname)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (braced_var_sub
                        token: <Id.VSub_Name dirname>
                        suffix_op: 
                          (suffix_op.Unary
                            tok: <Id.VTest_ColonHyphen ':-'>
                            arg_word: {<Id.Lit_Slash '/'>}
                          )
                      )
                    }
                  spids: [288]
                )
              ]
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:dirname)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (command_sub
                        left_token: <Id.Left_DollarParen '$('>
                        child: (C {<echo>} {($ Id.VSub_DollarName '$dirname')})
                      )
                    }
                  spids: [301]
                )
              ]
            )
            (C {<typeset>} {<long_path>})
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.Binary
                      op_id: Id.BoolBinary_GlobDEqual
                      left: {($ Id.VSub_DollarName '$basename')}
                      right: {(SQ <.>)}
                    )
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:basename)
                      op: assign_op.Equal
                      rhs: {(SQ )}
                      spids: [330]
                    )
                  ]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.ShAssignment
                              pairs: [
                                (assign_pair
                                  lhs: (sh_lhs_expr.Name name:long_path)
                                  op: assign_op.Equal
                                  rhs: 
                                    {
                                      (command_sub
                                        left_token: <Id.Left_DollarParen '$('>
                                        child: 
                                          (command.Subshell
                                            child: 
                                              (command.CommandList
                                                children: [
                                                  (command.Sentence
                                                    child: 
                                                      (C {<cd>} {(DQ ($ Id.VSub_DollarName '$dirname'))})
                                                    terminator: <Id.Op_Semi _>
                                                  )
                                                  (C {<pwd>})
                                                ]
                                              )
                                            redirects: [
                                              (redir
                                                op: <Id.Redir_Great '2>'>
                                                loc: (redir_loc.Fd fd:2)
                                                arg: {<'/dev/null'>}
                                              )
                                            ]
                                          )
                                      )
                                    }
                                  spids: [337]
                                )
                              ]
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.If
                      arms: [
                        (if_arm
                          cond: 
                            (condition.Shell
                              commands: [
                                (command.Sentence
                                  child: 
                                    (command.DBracket
                                      expr: 
                                        (bool_expr.Binary
                                          op_id: Id.BoolBinary_GlobDEqual
                                          left: {(DQ ($ Id.VSub_DollarName '$long_path'))}
                                          right: {(SQ <'/'>)}
                                        )
                                    )
                                  terminator: <Id.Op_Semi _>
                                )
                              ]
                            )
                          action: [(C {<echo>} {(DQ <'/'> ($ Id.VSub_DollarName '$basename'))})]
                          spids: [362 380]
                        )
                      ]
                      else_action: [
                        (C {<echo>} 
                          {
                            (DQ ($ Id.VSub_DollarName '$long_path') <'/'> 
                              ($ Id.VSub_DollarName '$basename')
                            )
                          }
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [335 359]
                )
              ]
              else_action: [
                (C {<echo>} {($ Id.VSub_DollarName '$filename')})
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<1>}
                )
              ]
            )
          ]
        )
    )
    (command.ShFunction
      name: _Dbg_tempname
      body: 
        (BraceGroup
          children: [
            (C {<echo>} 
              {
                (DQ ($ Id.VSub_DollarName '$_Dbg_tmpdir') <'/'> (${ Id.VSub_Name _Dbg_debugger_name) <_> 
                  ($ Id.VSub_Number '$1') <_> ($ Id.VSub_Dollar '$$')
                )
              }
            )
          ]
        )
    )
    (C {<.>} {(${ Id.VSub_Name _Dbg_libdir) <'/init/opts.sh'>})
    (command.ShAssignment
      pairs: [
        (assign_pair
          lhs: (sh_lhs_expr.Name name:OPTLIND)
          op: assign_op.Equal
          rhs: {<1>}
          spids: [469]
        )
      ]
    )
    (C {<_Dbg_parse_options>} {(DQ ($ Id.VSub_At '$@'))})
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.DBracket
                          expr: 
                            (bool_expr.LogicalNot
                              child: 
                                (bool_expr.Unary
                                  op_id: Id.BoolUnary_d
                                  child: {($ Id.VSub_DollarName '$_Dbg_tmpdir')}
                                )
                            )
                        )
                        (command.DBracket
                          expr: 
                            (bool_expr.LogicalNot
                              child: 
                                (bool_expr.Unary
                                  op_id: Id.BoolUnary_w
                                  child: {($ Id.VSub_DollarName '$_Dbg_tmpdir')}
                                )
                            )
                        )
                      ]
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.Simple
              words: [
                {<echo>}
                {
                  (DQ (${ Id.VSub_Name _Dbg_pname) <': cannot write to temp directory '> 
                    ($ Id.VSub_DollarName '$_Dbg_tmpdir') <.>
                  )
                }
              ]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (command.Simple
              words: [{<echo>} {(DQ (${ Id.VSub_Name _Dbg_pname) <': Use -T try directory location.'>)}]
              redirects: [(redir op:<Id.Redir_GreatAnd '>&'> loc:(redir_loc.Fd fd:1) arg:{<2>})]
              do_fork: T
            )
            (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<1>})
          ]
          spids: [479 505]
        )
      ]
    )
    (C {<typeset>} {<-x>} {<Id.Lit_VarLike '_Dbg_init_cwd='> ($ Id.VSub_DollarName '$PWD')})
    (C {<typeset>} {<-i>} {<Id.Lit_VarLike '_Dbg_running='> <1>})
    (C {<typeset>} {<-i>} {<Id.Lit_VarLike '_Dbg_brkpt_num='> <0>})
    (C {<typeset>} {<Id.Lit_VarLike '_Dbg_set_trace_commands='> (SQ <off>)})
    (C {<typeset>} {<-x>} {<Id.Lit_VarLike '_Dbg_space_IFS='> (SQ <'     \n'>)})
    (C {<typeset>} {<-i>} {<Id.Lit_VarLike '_Dbg_step_ignore='> <1>})
  ]
)