(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: [77] ) ] ) (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: [101] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:top_dir) op: assign_op.Equal rhs: {(${ Id.VSub_Name dirname) <'/..'>} spids: [108] ) ] ) ] ) (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: [55 74] ) ] ) (C {<_Dbg_help_add>} {<complete>} { (SQ <'**complete** *prefix-str*...\n'> <'\n'> <'\n'> <'Show command completion strings for *prefix-str*\n'> ) } ) (command.ShFunction name: _Dbg_do_complete body: (BraceGroup children: [ (command.Sentence child: (C {<typeset>} {<-a>} {<args>}) terminator: <Id.Op_Semi _> ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:args) op: assign_op.Equal rhs: {(sh_array_literal left:<Id.Op_LParen _> words:[{($ Id.VSub_At '$@')}])} spids: [171] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:_Dbg_matches) op: assign_op.Equal rhs: {(sh_array_literal left:<Id.Op_LParen _>)} spids: [177] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DParen child: (arith_expr.Binary op_id: Id.Arith_DEqual left: { (braced_var_sub token: <Id.VSub_Name args> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } right: {<Id.Lit_Digits 2>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<_Dbg_subcmd_complete>} { (braced_var_sub token: <Id.VSub_Name args> bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>}) ) } {(braced_var_sub token:<Id.VSub_Name args> bracket_op:(bracket_op.ArrayIndex expr:{<Id.Lit_Digits 1>}))} ) ] spids: [182 203] ) (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DParen child: (arith_expr.Binary op_id: Id.Arith_DEqual left: { (braced_var_sub token: <Id.VSub_Name args> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } right: {<Id.Lit_Digits 1>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<eval>} { (DQ <'builtin compgen -W '> (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\"'> ) (braced_var_sub token: <Id.VSub_Name _Dbg_debugger_commands> prefix_op: (Id.VSub_Bang) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <' -- '> (braced_var_sub token: <Id.VSub_Name args> bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>}) ) ) } ) ] spids: [223 244] ) ] ) (C {<typeset>} {<-i>} {<i>}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 0>} ) cond: (arith_expr.Binary op_id: Id.Arith_Less left: <Id.Lit_ArithVarLike i> right: { (braced_var_sub token: <Id.VSub_Name _Dbg_matches> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) update: (arith_expr.UnaryAssign op_id:Id.Node_PostDPlus child:<Id.Lit_ArithVarLike i>) body: (command.DoGroup children: [ (C {<_Dbg_msg>} { (braced_var_sub token: <Id.VSub_Name _Dbg_matches> bracket_op: (bracket_op.ArrayIndex expr:{($ Id.VSub_DollarName '$i')}) ) } ) ] ) ) ] ) ) (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: [ (C {<source>} {(${ Id.VSub_Name top_dir) <'/lib/msg.sh'>}) (command.ForEach iter_name: _Dbg_file iter_words: [ (word.BracedTree parts: [ (${ Id.VSub_Name top_dir) <'/command/'> (word_part.BracedTuple words: [{<c> <Id.Lit_Star '*'>} {<help>}] ) <.sh> ] ) ] do_arg_iter: F body: (command.DoGroup children:[(C {<source>} {($ Id.VSub_DollarName '$_Dbg_file')})]) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:_Dbg_args) op: assign_op.Equal rhs: {(SQ <complete>)} spids: [398] ) ] ) (C {<_Dbg_do_help>} {<complete>}) (C {<_Dbg_do_complete>} {<c>}) ] spids: [336 355] ) ] ) ] )