(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: [83] ) ] ) (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: [107] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:top_dir) op: assign_op.Equal rhs: {(${ Id.VSub_Name dirname) <'/..'>} spids: [114] ) ] ) ] ) (command.ForEach iter_name: 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 file) <.sh>} ) terminator: <Id.Op_Semi _> ) ] ) ) ] spids: [61 80] ) ] ) (C {<_Dbg_help_add>} {<help>} { (SQ <'**help** [*command* [*subcommand* ..]]\n'> <'\n'> <'If no arguments are given, print a list of command names.\n'> <'With a command name give help for that command. For many commands\n'> <'you can get further detailed help by listing the subcommand name.\n'> <'\n'> <'Examples:\n'> <'---------\n'> <'\n'> <' help\n'> <' help up\n'> <' help set\n'> <' help set args'> ) } {<1>} {<_Dbg_complete_help>} ) (command.ShFunction name: _Dbg_complete_help body: (BraceGroup children: [ (command.Sentence child: (C {<typeset>} {<-a>} {<words>}) terminator: <Id.Op_Semi _> ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:IFS) op: assign_op.Equal rhs: {(SQ <' '>)} spids: [191] ) (assign_pair lhs: (sh_lhs_expr.Name name:words) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [{($ Id.VSub_DollarName '$COMP_LINE')}] ) } spids: [196] ) ] ) (C {<typeset>} {<subcmds>}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:subcmds) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name _Dbg_command_help> prefix_op: (Id.VSub_Bang) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } spids: [209] ) ] ) (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 words> 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: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [{($ Id.VSub_DollarName '$subcmds')}] ) } spids: [244] ) ] ) ] spids: [221 241] ) (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 words> 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 {<typeset>} {<Id.Lit_VarLike 'commands='> (DQ (braced_var_sub token: <Id.VSub_Name _Dbg_command_help> prefix_op: (Id.VSub_Bang) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> child: (C {<compgen>} {<-W>} {(DQ ($ Id.VSub_DollarName '$subcmds'))} { (DQ (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: {<Id.Lit_Digits 1>} ) ) ) } ) ) } ] ) } spids: [290] ) ] ) ] spids: [252 273] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: {(sh_array_literal left:<Id.Op_LParen _>)} spids: [318] ) ] ) ] ) ] ) ) (command.ShFunction name: _Dbg_do_help body: (BraceGroup children: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$_Dbg_args'))} right: {(SQ <'*'>)} ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:_Dbg_args) op: assign_op.Equal rhs: {(SQ )} spids: [368] ) ] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(SQ )} right: {($ Id.VSub_DollarName '$_Dbg_args')} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<_Dbg_help_sort_command_names>}) (C {<_Dbg_section>} {(SQ <'Available commands:'>)}) (C {<typeset>} {<-a>} {<Id.Lit_VarLike 'list='> (sh_array_literal left: <Id.Op_LParen _> words: [ { (DQ (braced_var_sub token: <Id.VSub_Name _Dbg_sorted_command_names> bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } ] ) } ) (C {<_Dbg_list_columns>}) (C {<_Dbg_msg>} {(SQ )}) (C {<_Dbg_msg>} {(SQ <'Readline command line editing (emacs/vi mode) is available.'>)} ) (C {<_Dbg_msg>} {(SQ <'Type "help" followed by command name for full documentation.'>)} ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [374 389] ) ] else_action: [ (C {<typeset>} {<Id.Lit_VarLike 'dbg_cmd='> (DQ ($ Id.VSub_Number '$1'))}) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_n child: { (braced_var_sub token: <Id.VSub_Name _Dbg_command_help> bracket_op: (bracket_op.ArrayIndex expr: {($ Id.VSub_DollarName '$dbg_cmd')} ) ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<_Dbg_msg_rst>} { (DQ (braced_var_sub token: <Id.VSub_Name _Dbg_command_help> bracket_op: (bracket_op.ArrayIndex expr: {($ Id.VSub_DollarName '$dbg_cmd')} ) ) ) } ) ] spids: [458 475] ) ] else_action: [ (C {<_Dbg_alias_expand>} {($ Id.VSub_DollarName '$dbg_cmd')}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:dbg_cmd) op: assign_op.Equal rhs: {(DQ ($ Id.VSub_DollarName '$expanded_alias'))} spids: [498] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_n child: { (braced_var_sub token: <Id.VSub_Name _Dbg_command_help> bracket_op: (bracket_op.ArrayIndex expr: {($ Id.VSub_DollarName '$dbg_cmd')} ) ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<_Dbg_msg_rst>} { (DQ (braced_var_sub token: <Id.VSub_Name _Dbg_command_help> bracket_op: (bracket_op.ArrayIndex expr: {($ Id.VSub_DollarName '$dbg_cmd')} ) ) ) } ) ] spids: [504 521] ) ] else_action: [ (command.Case to_match: {($ Id.VSub_DollarName '$dbg_cmd')} arms: [ (case_arm pat_list: [{<i>} {<Id.KW_In in>} {<inf>} {<info>}] action: [ (C {<_Dbg_info_help>} {($ Id.VSub_Number '$2')}) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [546 560 571 -1] ) (case_arm pat_list: [{<sh>} {<sho>} {<show>}] action: [(C {<_Dbg_help_show>} {($ Id.VSub_Number '$2')})] spids: [574 584 592 -1] ) (case_arm pat_list: [{<se>} {<set>}] action: [(C {<_Dbg_help_set>} {($ Id.VSub_Number '$2')})] spids: [595 601 609 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] action: [ (C {<typeset>} {<-i>} {<Id.Lit_VarLike 'count='> <0>}) (C {<typeset>} {<found_cmd>}) (command.Sentence child: (C {<typeset>} {<list>}) terminator: <Id.Op_Semi _> ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:list) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name _Dbg_command_help> prefix_op: (Id.VSub_Bang) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) ) } spids: [639] ) ] ) (command.ForEach iter_name: try iter_words: [{($ Id.VSub_DollarName '$list')}] do_arg_iter: F body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_EqualTilde left: {($ Id.VSub_DollarName '$try')} right: {<Id.Lit_Other '^'> ($ Id.VSub_DollarName '$dbg_cmd') } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:found_cmd) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$try')} spids: [682] ) ] ) (command.DParen child: (arith_expr.UnaryAssign op_id: Id.Node_PostDPlus child: <Id.Lit_ArithVarLike count> ) ) ] spids: [664 679] ) ] ) ] ) ) (command.DParen child: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: <Id.Lit_ArithVarLike found> right: (arith_expr.Binary op_id: Id.Arith_DEqual left: <Id.Lit_ArithVarLike count> right: {<Id.Lit_Digits 1>} ) ) ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DParen child: <Id.Lit_ArithVarLike found> ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<_Dbg_msg>} { (DQ (braced_var_sub token: <Id.VSub_Name _Dbg_command_help> bracket_op: (bracket_op.ArrayIndex expr: {($ Id.VSub_DollarName '$found_cmd')} ) ) ) } ) ] spids: [711 719] ) ] else_action: [ (C {<_Dbg_errmsg>} { (DQ <'Undefined command: '> (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\"'> ) ($ Id.VSub_DollarName '$dbg_cmd') (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <'. Try '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'>) <help> (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\"'> ) <.> ) } ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] ) ] spids: [612 614 760 -1] ) ] ) ] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:aliases_found) op: assign_op.Equal rhs: {(SQ )} spids: [772] ) ] ) (C {<_Dbg_alias_find_aliased>} {(DQ ($ Id.VSub_DollarName '$dbg_cmd'))}) (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 '$aliases_found')} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<_Dbg_msg>} {(SQ )}) (C {<_Dbg_msg>} { (DQ <'Aliases for '> ($ Id.VSub_DollarName '$dbg_cmd') <': '> ($ Id.VSub_DollarName '$aliases_found') ) } ) ] spids: [784 796] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<2>} ) ] ) ] ) ) (C {<_Dbg_alias_add>} {(SQ <h>)} {<help>}) (C {<_Dbg_alias_add>} {(SQ <'?'>)} {<help>}) (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.ForEach iter_name: file iter_words: [{<sort>} {<columnize>} {<list>} {<msg>}] do_arg_iter: F body: (command.DoGroup children: [ (command.Sentence child: (C {<source>} {($ Id.VSub_DollarName '$top_dir') <'/lib/'> (${ Id.VSub_Name file) <.sh>} ) terminator: <Id.Op_Semi _> ) ] ) ) (C {<_Dbg_do_help>}) (C {<echo>} {(SQ <--->)}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:_Dbg_args) op: assign_op.Equal rhs: {(SQ <help>)} spids: [921] ) ] ) (C {<_Dbg_do_help>} {<help>}) ] spids: [848 867] ) ] ) ] )