(command.CommandList children: [ (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.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_Number 0)} right: { (BracedVarSub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Name BASH_SOURCE> var_name: BASH_SOURCE bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>}) right: <Id.Right_DollarBrace '}'> ) } ) right: <Id.Lit_DRightBracket ']]'> redirects: [] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'dirname='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'dirname='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'dirname='> name:dirname) op: assign_op.Equal rhs: { (BracedVarSub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Name BASH_SOURCE> var_name: BASH_SOURCE bracket_op: (bracket_op.ArrayIndex expr:{<Id.Lit_Digits 0>}) suffix_op: (suffix_op.Unary op: <Id.VOp1_Percent '%'> arg_word: {<Id.Lit_Slash '/'> <Id.Lit_Other '*'>} ) right: <Id.Right_DollarBrace '}'> ) } ) ] redirects: [] ) (command.AndOr children: [ (command.DBracket left: <Id.KW_DLeftBracket '[['> expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName dirname)} right: {($ Id.VSub_Number 0)} ) right: <Id.Lit_DRightBracket ']]'> redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'top_dir='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'top_dir='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'top_dir='> name:top_dir) op: assign_op.Equal rhs: {(SQ <'../..'>)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'top_dir='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'top_dir='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'top_dir='> name:top_dir) op: assign_op.Equal rhs: {(${ Id.VSub_Name dirname) <'/../..'>} ) ] redirects: [] ) ] ops: [<Id.Op_DAmp _> <Id.Op_DPipe _>] ) (command.AndOr children: [ (command.DBracket left: <Id.KW_DLeftBracket '[['> expr: (bool_expr.Unary op_id: Id.BoolUnary_z child: {($ Id.VSub_DollarName _Dbg_libdir)} ) right: <Id.Lit_DRightBracket ']]'> redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike '_Dbg_libdir='> pairs: [ (AssignPair left: <Id.Lit_VarLike '_Dbg_libdir='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike '_Dbg_libdir='> name:_Dbg_libdir) op: assign_op.Equal rhs: {($ Id.VSub_DollarName top_dir)} ) ] redirects: [] ) ] ops: [<Id.Op_DAmp _>] ) (command.ForEach keyword: <Id.KW_For for> iter_names: [file] iterable: (for_iter.Words words:[{<help>} {<alias>}]) semi_tok: <Id.Op_Semi _> body: (command.DoGroup left: <Id.KW_Do do> children: [ (command.Sentence child: (command.Simple blame_tok: <source> more_env: [] words: [ {<source>} {($ Id.VSub_DollarName top_dir) <'/lib/'> (${ Id.VSub_Name file) <.sh>} ] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) ] right: <Id.KW_Done done> ) redirects: [] ) ] spids: [61 80] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <_Dbg_help_add_sub> more_env: [] words: [ {<_Dbg_help_add_sub>} {<set>} {<highlight>} { (SQ <'**set** **highlight** [**dark**|**light**|**off**|**reset**]\n'> <'\n'> <'Set using terminal highlight.\n'> <'\n'> <'Use **reset** to set highlighting on and force a redo of syntax\n'> <'highlighting of already cached files. This may be needed if the\n'> <'debugger was started without syntax highlighting initially.\n'> <'\n'> <'**dark** sets sets for highlighting for a terminal with a dark background and\n'> <'**light** set for highlighting for a terminal with a light background.\n'> <'\n'> <'See also:\n'> <'---------\n'> <'\n'> <'**show highlight**.\n'> ) } ] redirects: [] do_fork: T ) (command.Simple blame_tok: <Id.Lit_ArrayLhsOpen '_Dbg_next_complete['> more_env: [] words: [ {<Id.Lit_ArrayLhsOpen '_Dbg_next_complete['> <set>} {<highlight> <Id.Lit_ArrayLhsClose ']='> (SQ <_Dbg_complete_highlight>)} ] redirects: [] do_fork: T ) (command.ShFunction name_tok: <_Dbg_complete_highlight> name: _Dbg_complete_highlight body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.ShAssignment left: <Id.Lit_VarLike 'COMPREPLY='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'COMPREPLY='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'COMPREPLY='> name:COMPREPLY) op: assign_op.Equal rhs: { (ShArrayLiteral left: <Id.Op_LParen _> words: [{<dark>} {<light>} {<off>} {<reset>}] right: <Id.Right_ShArrayLiteral _> ) } ) ] redirects: [] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.ShFunction name_tok: <_Dbg_do_set_highlight> name: _Dbg_do_set_highlight 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.Unary op_id: Id.Arith_Bang child: ($ Id.Lit_ArithVarLike _Dbg_working_term_highlight) ) 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 <'Can\'t run term-highlight. Setting forced off'>)}] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] spids: [228 241] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <typeset> more_env: [] words: [ {<typeset>} {<Id.Lit_VarLike 'onoff='> (BracedVarSub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Number 1> var_name: 1 suffix_op: (suffix_op.Unary op:<Id.VTest_ColonHyphen _> arg_word:{(SQ <light>)}) right: <Id.Right_DollarBrace '}'> ) } ] redirects: [] do_fork: T ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{($ Id.VSub_DollarName onoff)}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <on> pattern: (pat.Words words:[{<on>} {<light>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike '_Dbg_set_highlight='> pairs: [ (AssignPair left: <Id.Lit_VarLike '_Dbg_set_highlight='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike '_Dbg_set_highlight='> name: _Dbg_set_highlight ) op: assign_op.Equal rhs: {(SQ <light>)} ) ] redirects: [] ) (command.Simple blame_tok: <_Dbg_filecache_reset> more_env: [] words: [{<_Dbg_filecache_reset>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <_Dbg_readin> more_env: [] words: [{<_Dbg_readin>} {($ Id.VSub_DollarName _Dbg_frame_last_filename)}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <dark> pattern: (pat.Words words:[{<dark>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike '_Dbg_set_highlight='> pairs: [ (AssignPair left: <Id.Lit_VarLike '_Dbg_set_highlight='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike '_Dbg_set_highlight='> name: _Dbg_set_highlight ) op: assign_op.Equal rhs: {(SQ <dark>)} ) ] redirects: [] ) (command.Simple blame_tok: <_Dbg_filecache_reset> more_env: [] words: [{<_Dbg_filecache_reset>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <_Dbg_readin> more_env: [] words: [{<_Dbg_readin>} {($ Id.VSub_DollarName _Dbg_frame_last_filename)}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <off> pattern: (pat.Words words:[{<off>} {<0>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_VarLike '_Dbg_set_highlight='> pairs: [ (AssignPair left: <Id.Lit_VarLike '_Dbg_set_highlight='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike '_Dbg_set_highlight='> name: _Dbg_set_highlight ) op: assign_op.Equal rhs: {(SQ )} ) ] redirects: [] ) (command.Simple blame_tok: <_Dbg_filecache_reset> more_env: [] words: [{<_Dbg_filecache_reset>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <_Dbg_readin> more_env: [] words: [{<_Dbg_readin>} {($ Id.VSub_DollarName _Dbg_frame_last_filename)}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <reset> pattern: (pat.Words words:[{<reset>}]) middle: <Id.Right_CasePat _> action: [ (command.AndOr children: [ (command.DBracket left: <Id.KW_DLeftBracket '[['> expr: (bool_expr.Unary op_id: Id.BoolUnary_z child: {($ Id.VSub_DollarName _Dbg_set_highlight)} ) right: <Id.Lit_DRightBracket ']]'> redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike '_Dbg_set_highlight='> pairs: [ (AssignPair left: <Id.Lit_VarLike '_Dbg_set_highlight='> lhs: (sh_lhs_expr.Name left: <Id.Lit_VarLike '_Dbg_set_highlight='> name: _Dbg_set_highlight ) op: assign_op.Equal rhs: {(SQ <light>)} ) ] redirects: [] ) ] ops: [<Id.Op_DAmp _>] ) (command.Simple blame_tok: <_Dbg_filecache_reset> more_env: [] words: [{<_Dbg_filecache_reset>}] redirects: [] do_fork: T ) (command.Simple blame_tok: <_Dbg_readin> more_env: [] words: [{<_Dbg_readin>} {($ Id.VSub_DollarName _Dbg_frame_last_filename)}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <Id.Lit_Star '*'> pattern: (pat.Words words:[{<Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <_Dbg_errmsg> more_env: [] words: [{<_Dbg_errmsg>} {(SQ <'"dark", "light", "off", or "reset" expected.'>)}] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.Simple blame_tok: <_Dbg_do_show> more_env: [] words: [{<_Dbg_do_show>} {<highlight>}] redirects: [] do_fork: T ) (command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<0>}) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) ] )