(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"> ) } ) (FuncDef name: _Dbg_do_list body: (BraceGroup children: [ (C {(typeset)} {(-i)} {(center_line)}) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: { (BracedVarSub token: <VSub_Name _Dbg_orig_cmd> suffix_op: (Slice begin: (ArithBinary op_id: Arith_Minus left: (ArithWord w: { (BracedVarSub token: <VSub_Name _Dbg_orig_cmd> prefix_op: VSub_Pound spids: [127 130] ) } ) right: (ArithWord w:{(Lit_Digits 1)}) ) length: (ArithWord w:{(Lit_Digits 1)}) ) spids: [124 135] ) } right: {(SQ <">">)} ) ) terminator: <Op_Semi ";"> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:center_line) op: Equal rhs: {(0)} spids: [150] ) ] spids: [150] ) ] spids: [-1 147] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:center_line) op:Equal rhs:{(1)} spids:[157])] spids: [157] ) ] spids: [154 161] ) (C {(typeset)} {(first_arg)}) (If arms: [ (if_arm cond: [ (Sentence child: (DParen child: (ArithBinary op_id: Arith_Great left: (ArithWord w:{($ VSub_Pound "$#")}) right: (ArithWord w:{(Lit_Digits 0)}) ) ) terminator: <Op_Semi ";"> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:first_arg) op: Equal rhs: {(DQ ($ VSub_Number "$1"))} spids: [188] ) ] spids: [188] ) (C {(shift)}) ] spids: [-1 185] ) ] else_action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:first_arg) op: Equal rhs: {(DQ ($ VSub_Name "$_Dbg_listline"))} spids: [200] ) ] spids: [200] ) ] spids: [197 206] ) (If arms: [ (if_arm cond: [ (Sentence child: (AndOr children: [ (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_Name "$first_arg")} right: {(SQ <.>)} ) ) (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_Name "$first_arg")} right: {(SQ <->)} ) ) ] op_id: Op_DPipe ) terminator: <Op_Semi ";"> ) ] action: [ (C {(_Dbg_list)} {($ VSub_Name "$center_line")} {(DQ ($ VSub_Name "$_Dbg_frame_last_filename"))} {($ VSub_Name "$first_arg")} {(DQ ($ VSub_Star "$*"))} ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_Dbg_last_cmd) op: Equal rhs: {(DQ ($ VSub_Name "$_Dbg_cmd"))} spids: [258] ) ] spids: [258] ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] spids: [-1 240] ) ] spids: [-1 269] ) (C {(typeset)} {(filename)}) (C {(typeset)} {(-i)} {(line_number)}) (C {(typeset)} {(full_filename)}) (C {(_Dbg_linespec_setup)} {(DQ ($ VSub_Name "$first_arg"))}) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolUnary op_id:BoolUnary_n child:{($ VSub_Name "$full_filename")}) ) terminator: <Op_Semi ";"> ) ] action: [ (AndOr children: [ (DParen child: (ArithBinary op_id: Arith_DEqual left: (ArithVarRef name:line_number) right: (ArithWord w:{(Lit_Digits 0)}) ) ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:line_number) op: Equal rhs: {(1)} spids: [327] ) ] spids: [327] ) ] op_id: Op_DAmp ) (C {(_Dbg_check_line)} {($ VSub_Name "$line_number")} {(DQ ($ VSub_Name "$full_filename"))} ) (AndOr children: [ (DParen child: (ArithBinary op_id: Arith_DEqual left: (ArithWord w:{($ VSub_QMark "$?")}) right: (ArithWord w:{(Lit_Digits 0)}) ) ) (C {(_Dbg_list)} {($ VSub_Name "$center_line")} {(DQ ($ VSub_Name "$full_filename"))} {(DQ ($ VSub_Name "$line_number"))} {($ VSub_Star "$*")} ) ] op_id: Op_DAmp ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_Dbg_last_cmd) op: Equal rhs: {(DQ ($ VSub_Name "$_Dbg_cmd"))} spids: [370] ) ] spids: [370] ) (ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] spids: [-1 311] ) ] else_action: [ (C {(_Dbg_file_not_read_in)} {(DQ ($ VSub_Name "$filename"))}) (ControlFlow token:<ControlFlow_Return return> arg_word:{(3)}) ] spids: [381 396] ) ] spids: [110] ) spids: [106 109] ) (C {(_Dbg_alias_add)} {(l)} {(list)}) (C {(_Dbg_alias_add)} {(DQ ("l>"))} {(list)}) (C {(_Dbg_alias_add)} {(DQ ("list>"))} {(list)}) ] )