(command.CommandList
  children: [
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: {($ Id.VSub_Number '$0')}
                          right: 
                            {
                              (braced_var_sub
                                token: <Id.VSub_Name BASH_SOURCE>
                                bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                              )
                            }
                        )
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:dirname)
                  op: assign_op.Equal
                  rhs: 
                    {
                      (braced_var_sub
                        token: <Id.VSub_Name BASH_SOURCE>
                        bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                        suffix_op: 
                          (suffix_op.Unary
                            tok: <Id.VOp1_Percent '%'>
                            arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>}
                          )
                      )
                    }
                  spids: [83]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp Id.Op_DPipe]
              children: [
                (command.DBracket
                  expr: 
                    (bool_expr.Binary
                      op_id: Id.BoolBinary_GlobDEqual
                      left: {($ Id.VSub_DollarName '$dirname')}
                      right: {($ Id.VSub_Number '$0')}
                    )
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:top_dir)
                      op: assign_op.Equal
                      rhs: {(SQ <..>)}
                      spids: [107]
                    )
                  ]
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:top_dir)
                      op: assign_op.Equal
                      rhs: {(${ Id.VSub_Name dirname) <'/..'>}
                      spids: [114]
                    )
                  ]
                )
              ]
            )
            (command.ForEach
              iter_name: lib_file
              iter_words: [{<help>} {<alias>}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (command.Sentence
                      child: 
                        (C {<source>} 
                          {($ Id.VSub_DollarName '$top_dir') <'/lib/'> (${ Id.VSub_Name lib_file) <.sh>}
                        )
                      terminator: <Id.Op_Semi _>
                    )
                  ]
                )
            )
          ]
          spids: [61 80]
        )
      ]
    )
    (C {<_Dbg_help_add>} {<up>} 
      {
        (SQ <'**up** [*count*]\n'> <'\n'> 
          <'Move the current frame up in the stack trace (to an older frame). 0 is\n'> <'the most recent frame.\n'> <'\n'> 
          <'If **count** is omitted, use 1. **count* can be any arithmetic expression.\n'> <'\n'> <'See also:\n'> <'---------\n'> <'\n'> <'**down** and **frame**.\n'>
        )
      } {<1>} {<_Dbg_complete_up>}
    )
    (command.ShFunction
      name: _Dbg_complete_up
      body: 
        (BraceGroup
          children: [
            (command.Sentence
              child: (C {<typeset>} {<-i>} {<start>})
              terminator: <Id.Op_Semi _>
            )
            (command.DParen
              child: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: <Id.Lit_ArithVarLike start>
                  right: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Plus
                      left: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Plus
                          left: 
                            (arith_expr.Unary
                              op_id: Id.Node_UnaryMinus
                              child: <Id.Lit_ArithVarLike _Dbg_stack_size>
                            )
                          right: {<Id.Lit_Digits 3>}
                        )
                      right: <Id.Lit_ArithVarLike _Dbg_stack_pos>
                    )
                )
            )
            (command.Sentence
              child: (C {<typeset>} {<-i>} {<end>})
              terminator: <Id.Op_Semi _>
            )
            (command.DParen
              child: 
                (arith_expr.BinaryAssign
                  op_id: Id.Arith_Equal
                  left: <Id.Lit_ArithVarLike end>
                  right: 
                    (arith_expr.Binary
                      op_id: Id.Arith_Minus
                      left: 
                        (arith_expr.Binary
                          op_id: Id.Arith_Minus
                          left: <Id.Lit_ArithVarLike _Dbg_stack_size>
                          right: {<Id.Lit_Digits 2>}
                        )
                      right: <Id.Lit_ArithVarLike _Dbg_stack_pos>
                    )
                )
            )
            (C {<_Dbg_complete_num_range>} {($ Id.VSub_DollarName '$start')} 
              {($ Id.VSub_DollarName '$end')}
            )
          ]
        )
    )
    (command.ShFunction
      name: _Dbg_do_up
      body: 
        (BraceGroup
          children: [
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (C {<_Dbg_not_running>})
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<3>}
                )
              ]
            )
            (C {<typeset>} 
              {<Id.Lit_VarLike 'count='> 
                (braced_var_sub
                  token: <Id.VSub_Number 1>
                  suffix_op: (suffix_op.Unary tok:<Id.VTest_ColonHyphen ':-'> arg_word:{<1>})
                )
              }
            )
            (C {<_Dbg_is_signed_int>} {($ Id.VSub_DollarName '$count')})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DParen
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_DEqual
                                  left: {<Id.Lit_Digits 0>}
                                  right: {($ Id.VSub_QMark '$?')}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<_Dbg_frame_adjust>} {($ Id.VSub_DollarName '$count')} {<Id.Lit_Other '+'> <1>})
                    (C {<typeset>} {<-i>} {<Id.Lit_VarLike 'rc='> ($ Id.VSub_QMark '$?')})
                  ]
                  spids: [266 281]
                )
              ]
              else_action: [
                (C {<_Dbg_errmsg>} {(DQ <'Expecting an integer; got '> ($ Id.VSub_DollarName '$count'))})
                (C {<typeset>} {<-i>} {<Id.Lit_VarLike 'rc='> <2>})
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DParen
                  child: 
                    (arith_expr.Binary
                      op_id: Id.Arith_DEqual
                      left: {<Id.Lit_Digits 0>}
                      right: <Id.Lit_ArithVarLike rc>
                    )
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:_Dbg_last_cmd)
                      op: assign_op.Equal
                      rhs: {(SQ <up>)}
                      spids: [333]
                    )
                  ]
                )
              ]
            )
            (command.ControlFlow
              token: <Id.ControlFlow_Return return>
              arg_word: {($ Id.VSub_DollarName '$rc')}
            )
          ]
        )
    )
    (command.If
      arms: [
        (if_arm
          cond: 
            (condition.Shell
              commands: [
                (command.Sentence
                  child: 
                    (command.DBracket
                      expr: 
                        (bool_expr.Binary
                          op_id: Id.BoolBinary_GlobDEqual
                          left: {($ Id.VSub_Number '$0')}
                          right: 
                            {
                              (braced_var_sub
                                token: <Id.VSub_Name BASH_SOURCE>
                                bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>})
                              )
                            }
                        )
                    )
                  terminator: <Id.Op_Semi _>
                )
              ]
            )
          action: [
            (command.ForEach
              iter_name: _Dbg_file
              iter_words: [{<help>} {<msg>} {<sort>} {<columnize>}]
              do_arg_iter: F
              body: 
                (command.DoGroup
                  children: [
                    (C {<source>} 
                      {(${ Id.VSub_Name top_dir) <'/lib/'> (${ Id.VSub_Name _Dbg_file) <.sh>}
                    )
                  ]
                )
            )
            (C {<source>} {(${ Id.VSub_Name top_dir) <'/command/help.sh'>})
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:_Dbg_args)
                  op: assign_op.Equal
                  rhs: {(SQ <up>)}
                  spids: [413]
                )
              ]
            )
            (C {<_Dbg_do_help>} {<up>})
          ]
          spids: [349 368]
        )
      ]
    )
  ]
)