(command.CommandList
  children: [
    (C {<_Dbg_help_add>} {<edit>} 
      {
        (DQ <'**edit** [*line-number*]\n'> <'\n'> <'Edit specified file at *line-number*.\n'> <'\n'> 
          <'If *line-number* is not given, use the current line number.\n'> <'Uses '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <EDITOR> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <' environment variable contents as editor (or ex as default).\n'> 
          <'Assumes the editor positions at a file using options '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <'+linenumber filename'> 
          (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <.>
        )
      }
    )
    (command.ShFunction
      name: _Dbg_do_edit
      body: 
        (BraceGroup
          children: [
            (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 2>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<_Dbg_errmsg>} 
                      {(DQ <'got '> ($ Id.VSub_Pound '$#') <' parameters, but need 0 or 1.'>)}
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<2>}
                    )
                  ]
                  spids: [91 104]
                )
              ]
            )
            (C {<typeset>} 
              {<Id.Lit_VarLike 'editor='> 
                (braced_var_sub
                  token: <Id.VSub_Name EDITOR>
                  suffix_op: (suffix_op.Unary tok:<Id.VTest_ColonHyphen ':-'> arg_word:{<ex>})
                )
              }
            )
            (C {<typeset>} {<-i>} {<line_number>})
            (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.VSub_Pound '$#')}
                                  right: {<Id.Lit_Digits 0>}
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:line_number)
                          op: assign_op.Equal
                          rhs: {($ Id.VSub_DollarName '$_Dbg_frame_last_lineno')}
                          spids: [159]
                        )
                      ]
                    )
                    (command.ShAssignment
                      pairs: [
                        (assign_pair
                          lhs: (sh_lhs_expr.Name name:full_filename)
                          op: assign_op.Equal
                          rhs: {(DQ ($ Id.VSub_DollarName '$_Dbg_frame_last_filename'))}
                          spids: [163]
                        )
                      ]
                    )
                  ]
                  spids: [141 156]
                )
              ]
              else_action: [(C {<_Dbg_linespec_setup>} {(DQ ($ Id.VSub_Number '$1'))})]
            )
            (command.If
              arms: [
                (if_arm
                  cond: 
                    (condition.Shell
                      commands: [
                        (command.Sentence
                          child: 
                            (command.DBracket
                              expr: 
                                (bool_expr.LogicalNot
                                  child: 
                                    (bool_expr.Unary
                                      op_id: Id.BoolUnary_r
                                      child: {($ Id.VSub_DollarName '$full_filename')}
                                    )
                                )
                            )
                          terminator: <Id.Op_Semi _>
                        )
                      ]
                    )
                  action: [
                    (C {<_Dbg_errmsg>} 
                      {(DQ <'File '> ($ Id.VSub_DollarName '$full_filename') <' is not readable'>)}
                    )
                    (command.ControlFlow
                      token: <Id.ControlFlow_Return return>
                      arg_word: {<2>}
                    )
                  ]
                  spids: [182 196]
                )
              ]
            )
            (C {($ Id.VSub_DollarName '$editor')} 
              {<Id.Lit_Other '+'> ($ Id.VSub_DollarName '$line_number')} {($ Id.VSub_DollarName '$full_filename')}
            )
            (command.ShAssignment
              pairs: [
                (assign_pair
                  lhs: (sh_lhs_expr.Name name:rc)
                  op: assign_op.Equal
                  rhs: {($ Id.VSub_QMark '$?')}
                  spids: [224]
                )
              ]
            )
            (command.AndOr
              ops: [Id.Op_DAmp]
              children: [
                (command.DParen
                  child: 
                    (arith_expr.Binary
                      op_id: Id.Arith_DEqual
                      left: <Id.Lit_ArithVarLike rc>
                      right: {<Id.Lit_Digits 0>}
                    )
                )
                (command.ShAssignment
                  pairs: [
                    (assign_pair
                      lhs: (sh_lhs_expr.Name name:_Dbg_last_cmd)
                      op: assign_op.Equal
                      rhs: {(SQ <edit>)}
                      spids: [237]
                    )
                  ]
                )
              ]
            )
            (command.ControlFlow
              token: <Id.ControlFlow_Return return>
              arg_word: {($ Id.VSub_DollarName '$rc')}
            )
          ]
        )
    )
    (C {<_Dbg_alias_add>} {(SQ <ed>)} {(SQ <edit>)})
  ]
)