(command.CommandList children: [ (command.Simple blame_tok: <_Dbg_help_add> more_env: [] words: [ {<_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 '\\"'> ch:'"') <EDITOR> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' 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 '\\"'> ch:'"') <'+linenumber filename'> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <.> ) } ] redirects: [] do_fork: T ) (command.ShFunction name_tok: <_Dbg_do_edit> name: _Dbg_do_edit body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.DParen left: <Id.Op_DLeftParen _> child: (arith_expr.Binary op_id: Id.Arith_Great left: {($ Id.VSub_Pound '#')} right: {<Id.Lit_Digits 2>} ) right: <Id.Op_DRightParen _> redirects: [] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <_Dbg_errmsg> more_env: [] words: [ {<_Dbg_errmsg>} {(DQ <'got '> ($ Id.VSub_Pound '#') <' parameters, but need 0 or 1.'>)} ] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<2>} ) ] spids: [91 104] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <typeset> more_env: [] words: [ {<typeset>} {<Id.Lit_VarLike 'editor='> (BracedVarSub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Name EDITOR> var_name: EDITOR suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{<ex>}) right: <Id.Right_DollarBrace '}'> ) } ] redirects: [] do_fork: T ) (command.Simple blame_tok: <typeset> more_env: [] words: [{<typeset>} {<-i>} {<line_number>}] redirects: [] do_fork: T ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.DParen left: <Id.Op_DLeftParen _> child: (arith_expr.Binary op_id: Id.Arith_DEqual left: {($ Id.VSub_Pound '#')} right: {<Id.Lit_Digits 0>} ) right: <Id.Op_DRightParen _> redirects: [] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'line_number='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'line_number='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'line_number='> name: line_number ) op: assign_op.Equal rhs: {($ Id.VSub_DollarName _Dbg_frame_last_lineno)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'full_filename='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'full_filename='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike 'full_filename='> name: full_filename ) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_DollarName _Dbg_frame_last_filename))} ) ] redirects: [] ) ] spids: [141 156] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <_Dbg_linespec_setup> more_env: [] words: [{<_Dbg_linespec_setup>} {(DQ ($ Id.VSub_Number 1))}] redirects: [] do_fork: T ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.If if_kw: <Id.KW_If if> arms: [ (IfArm keyword: <Id.KW_If if> cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket left: <Id.KW_DLeftBracket '[['> expr: (bool_expr.LogicalNot child: (bool_expr.Unary op_id: Id.BoolUnary_r child: {($ Id.VSub_DollarName full_filename)} ) ) right: <Id.Lit_DRightBracket ']]'> redirects: [] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.Simple blame_tok: <_Dbg_errmsg> more_env: [] words: [ {<_Dbg_errmsg>} {(DQ <'File '> ($ Id.VSub_DollarName full_filename) <' is not readable'>)} ] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<2>} ) ] spids: [182 196] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <Id.VSub_DollarName '$editor'> more_env: [] words: [ {($ Id.VSub_DollarName editor)} {<Id.Lit_Other '+'> ($ Id.VSub_DollarName line_number)} {($ Id.VSub_DollarName full_filename)} ] redirects: [] do_fork: T ) (command.ShAssignment left: <Id.Lit_VarLike 'rc='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'rc='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rc='> name:rc) op: assign_op.Equal rhs: {($ Id.VSub_QMark '?')} ) ] redirects: [] ) (command.AndOr children: [ (command.DParen left: <Id.Op_DLeftParen _> child: (arith_expr.Binary op_id: Id.Arith_DEqual left: ($ Id.Lit_ArithVarLike rc) right: {<Id.Lit_Digits 0>} ) right: <Id.Op_DRightParen _> redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike '_Dbg_last_cmd='> pairs: [ (AssignPair left: <Id.Lit_VarLike '_Dbg_last_cmd='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike '_Dbg_last_cmd='> name: _Dbg_last_cmd ) op: assign_op.Equal rhs: {(SQ <edit>)} ) ] redirects: [] ) ] ops: [<Id.Op_DAmp _>] ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {($ Id.VSub_DollarName rc)} ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.Simple blame_tok: <_Dbg_alias_add> more_env: [] words: [{<_Dbg_alias_add>} {(SQ <ed>)} {(SQ <edit>)}] redirects: [] do_fork: T ) ] )