(command.CommandList
  children: [
    (C {<_Dbg_help_add>} {<list>} 
      {
        (SQ <'**list**[**>**] [*location*|**.**|**-**] [*count*]\n'> <'\n'> <'List source code.\n'> 
          <'\n'> <'Without arguments, print lines centered around the current line. If\n'> 
          <'*location* is given, that number of lines is shown.\n'> <'\n'> <'*location* can be a read-in function name or a filename and line\n'> 
          <'number separated by a colon, e.g /etc/profile:5\n'> <'\n'> <'If *count* is omitted, use the value in the **set listize** setting as\n'> 
          <'a count. Use **set listsize** to change this setting. If *count* is\n'> <'given and is less than the starting line, then it is treated as a\n'> 
          <'count. Otherwise it is treated as an ending line number.\n'> <'\n'> <'more generally when the alias ends in ">", rather than center lines\n'> 
          <'around *location* that will be used as the starting point.\n'> <'\n'> <'Examples:\n'> <'---------\n'> <'\n'> 
          <'    list              # List from current program position or where we last left off\n'> <'    list 5            # List starting from line 5\n'> 
          <'    list 5 2          # List two lines starting from line 5\n'> <'    list .            # List lines centered from where we currently are stopped\n'> 
          <'    list -            # List lines previous to those just shown\n'> <'\n'> <'See also:\n'> <'---------\n'> <'\n'> 
          <'**set listsize** or **show listsize** to see or set the value;\n'> <'**set autolist**.\n'>
        )
      }
    )
    (command.ShFunction
      name: _Dbg_do_list
      body: 
        (BraceGroup
          children: [
            (C {<typeset>} {<-i>} {<center_line>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Binary
                                  op_id: Id.BoolBinary_GlobDEqual
                                  left: 
                                    {
                                      (braced_var_sub
                                        token: <Id.VSub_Name _Dbg_orig_cmd>
                                        suffix_op: 
                                          (suffix_op.Slice
                                            begin: 
                                              (arith_expr.Binary
                                                op_id: Id.Arith_Minus
                                                left: 
                                                  {
                                                    (braced_var_sub
                                                      token: <Id.VSub_Name _Dbg_orig_cmd>
                                                      prefix_op: (Id.VSub_Pound)
                                                    )
                                                  }
                                                right: {<Id.Lit_Digits 1>}
                                              )
                                            length: {<Id.Lit_Digits 1>}
                                          )
                                      )
                                    }
                                  right: {(SQ <'>'>)}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:center_line)
                          op: assign_op.Equal
                          rhs: {<0>}
                          spids: [150]
                        )
                      ]
                    )
                  ]
                  spids: [120 147]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:center_line)
                      op: assign_op.Equal
                      rhs: {<1>}
                      spids: [157]
                    )
                  ]
                )
              ]
            )
            (C {<typeset>} {<first_arg>})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DParen
                              child: 
                                (arith_expr.Binary
                                  op_id: Id.Arith_Great
                                  left: {($ Id.VSub_Pound '$#')}
                                  right: {<Id.Lit_Digits 0>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:first_arg)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_Number '$1'))}
                          spids: [188]
                        )
                      ]
                    )
                    (C {<shift>})
                  ]
                  spids: [170 185]
                )
              ]
              else_action: [
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:first_arg)
                      op: assign_op.Equal
                      rhs: {(DQ ($ Id.VSub_DollarName '$_Dbg_listline'))}
                      spids: [200]
                    )
                  ]
                )
              ]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.AndOr
                              ops: [Id.Op_DPipe]
                              children: [
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {($ Id.VSub_DollarName '$first_arg')}
                                      right: {(SQ <.>)}
                                    )
                                )
                                (command.DBracket
                                  expr: 
                                    (bool_expr.Binary
                                      op_id: Id.BoolBinary_GlobDEqual
                                      left: {($ Id.VSub_DollarName '$first_arg')}
                                      right: {(SQ <->)}
                                    )
                                )
                              ]
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<_Dbg_list>} {($ Id.VSub_DollarName '$center_line')} 
                      {(DQ ($ Id.VSub_DollarName '$_Dbg_frame_last_filename'))} {($ Id.VSub_DollarName '$first_arg')} {(DQ ($ Id.VSub_Star '$*'))}
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:_Dbg_last_cmd)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName '$_Dbg_cmd'))}
                          spids: [258]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [210 240]
                )
              ]
            )
            (C {<typeset>} {<filename>})
            (C {<typeset>} {<-i>} {<line_number>})
            (C {<typeset>} {<full_filename>})
            (C {<_Dbg_linespec_setup>} {(DQ ($ Id.VSub_DollarName '$first_arg'))})
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.Unary
                                  op_id: Id.BoolUnary_n
                                  child: {($ Id.VSub_DollarName '$full_filename')}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.DParen
                          child: 
                            (arith_expr.Binary
                              op_id: Id.Arith_DEqual
                              left: <Id.Lit_ArithVarLike line_number>
                              right: {<Id.Lit_Digits 0>}
                            )
                        )
                        (command.ShAssignment
                          pairs: [
                            (assign_pair
                              lhs: (sh_lhs_expr.Name name:line_number)
                              op: assign_op.Equal
                              rhs: {<1>}
                              spids: [327]
                            )
                          ]
                        )
                      ]
                    )
                    (C {<_Dbg_check_line>} {($ Id.VSub_DollarName '$line_number')} 
                      {(DQ ($ Id.VSub_DollarName '$full_filename'))}
                    )
                    (command.AndOr
                      ops: [Id.Op_DAmp]
                      children: [
                        (command.DParen
                          child: 
                            (arith_expr.Binary
                              op_id: Id.Arith_DEqual
                              left: {($ Id.VSub_QMark '$?')}
                              right: {<Id.Lit_Digits 0>}
                            )
                        )
                        (C {<_Dbg_list>} {($ Id.VSub_DollarName '$center_line')} 
                          {(DQ ($ Id.VSub_DollarName '$full_filename'))} {(DQ ($ Id.VSub_DollarName '$line_number'))} {($ Id.VSub_Star '$*')}
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:_Dbg_last_cmd)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName '$_Dbg_cmd'))}
                          spids: [370]
                        )
                      ]
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<0>}
                    )
                  ]
                  spids: [299 311]
                )
              ]
              else_action: [
                (C {<_Dbg_file_not_read_in>} {(DQ ($ Id.VSub_DollarName '$filename'))})
                (command.ControlFlow
                  token: <Id.ControlFlow_Return return>
                  arg_word: {<3>}
                )
              ]
            )
          ]
        )
    )
    (C {<_Dbg_alias_add>} {<l>} {<list>})
    (C {<_Dbg_alias_add>} {(DQ <'l>'>)} {<list>})
    (C {<_Dbg_alias_add>} {(DQ <'list>'>)} {<list>})
  ]
)