(command.CommandList children: [ (command.Simple blame_tok: <_Dbg_help_add> more_env: [] words: [ {<_Dbg_help_add>} {<handle>} { (DQ <'**handle** *signal* *action*\n'> <'\n'> <'Specify how to handle *signal*.\n'> <'\n'> <'*signal* is a signal name like SIGSEGV, but numeric signals like 11\n'> <'(which is usually equivalent on '> <Id.Lit_BadBackslash '\\'> <'*nix systems) is okay too.\n'> <'\n'> <'*action* is one of '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <stop> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <', '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <nostop> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <', '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <print> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <', and\n'> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <noprint> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <'. '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <Stop> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' indicates entering debugger if this signal\n'> <'happens. '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <Print> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' indicates printing a message if this signal is\n'> <'encountered. '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <Stack> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' is like '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <print> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' but except the entire call\n'> <'stack is printed. Prefacing these actions with '> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <no> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' indicates not to\n'> <'do the indicated action.'> ) } ] redirects: [] do_fork: T ) (command.ShFunction name_tok: <_Dbg_do_handle> name: _Dbg_do_handle body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.Simple blame_tok: <typeset> more_env: [] words: [{<typeset>} {<Id.Lit_VarLike 'sig='> ($ Id.VSub_Number 1)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <typeset> more_env: [] words: [{<typeset>} {<Id.Lit_VarLike 'cmd='> ($ Id.VSub_Number 2)}] redirects: [] do_fork: T ) (command.Simple blame_tok: <typeset> more_env: [] words: [{<typeset>} {<-i>} {<signum>}] 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.DBracket left: <Id.KW_DLeftBracket '[['> expr: (bool_expr.Unary op_id: Id.BoolUnary_z child: {($ Id.VSub_DollarName sig)} ) 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 <'Missing signal name or signal number.'>)}] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] spids: [151 163] ) ] else_action: [] 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.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName sig)} right: {($ Id.VSub_DollarName int_pat)} ) right: <Id.Lit_DRightBracket ']]'> redirects: [] ) terminator: <Id.Op_Semi _> ) ] ) then_kw: <Id.KW_Then then> action: [ (command.ShAssignment left: <Id.Lit_VarLike 'signame='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'signame='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'signame='> name:signame) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <_Dbg_signum2name> more_env: [] words: [{<_Dbg_signum2name>} {($ Id.VSub_DollarName sig)}] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) } ) ] redirects: [] ) (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_NEqual left: {($ Id.VSub_QMark '?')} right: {<Id.Lit_Digits 0>} ) 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 <'Bad signal number: '> ($ Id.VSub_DollarName sig))} ] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<2>} ) ] spids: [206 221] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.ShAssignment left: <Id.Lit_VarLike 'signum='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'signum='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'signum='> name:signum) op: assign_op.Equal rhs: {<sig>} ) ] redirects: [] ) ] spids: [182 195] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Sentence child: (command.Simple blame_tok: <typeset> more_env: [] words: [{<typeset>} {<signum>}] redirects: [] do_fork: T ) terminator: <Id.Op_Semi _> ) (command.ShAssignment left: <Id.Lit_VarLike 'signum='> pairs: [ (AssignPair left: <Id.Lit_VarLike 'signum='> lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'signum='> name:signum) op: assign_op.Equal rhs: { (CommandSub left_token: <Id.Left_DollarParen '$('> child: (command.Simple blame_tok: <_Dbg_name2signum> more_env: [] words: [{<_Dbg_name2signum>} {($ Id.VSub_DollarName sig)}] redirects: [] do_fork: T ) right: <Id.Eof_RParen _> ) } ) ] redirects: [] ) (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_NEqual left: {($ Id.VSub_QMark '?')} right: {<Id.Lit_Digits 0>} ) 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 <'Bad signal name: '> ($ Id.VSub_DollarName sig))} ] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<3>} ) ] spids: [261 276] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{($ Id.VSub_DollarName cmd)}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <nop> pattern: (pat.Words words:[{<nop>} {<nopr>} {<nopri>} {<noprin>} {<noprint>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> pairs: [ (AssignPair left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> lhs: (sh_lhs_expr.IndexedName left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> name: _Dbg_sig_print index: ($ Id.Lit_ArithVarLike signum) ) op: assign_op.Equal rhs: {(SQ <noprint>)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> pairs: [ (AssignPair left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> lhs: (sh_lhs_expr.IndexedName left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> name: _Dbg_sig_stop index: ($ Id.Lit_ArithVarLike signum) ) op: assign_op.Equal rhs: {(SQ <stop>)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <nosta> pattern: (pat.Words words:[{<nosta>} {<nostac>} {<nostack>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_show_stack['> pairs: [ (AssignPair left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_show_stack['> lhs: (sh_lhs_expr.IndexedName left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_show_stack['> name: _Dbg_sig_show_stack index: ($ Id.Lit_ArithVarLike signum) ) op: assign_op.Equal rhs: {(SQ <nostack>)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <nosto> pattern: (pat.Words words:[{<nosto>} {<nostop>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> pairs: [ (AssignPair left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> lhs: (sh_lhs_expr.IndexedName left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> name: _Dbg_sig_stop index: ($ Id.Lit_ArithVarLike signum) ) op: assign_op.Equal rhs: {(SQ <nostop>)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <p> pattern: (pat.Words words:[{<p>} {<pr>} {<pri>} {<prin>} {<print>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> pairs: [ (AssignPair left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> lhs: (sh_lhs_expr.IndexedName left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> name: _Dbg_sig_print index: ($ Id.Lit_ArithVarLike signum) ) op: assign_op.Equal rhs: {(SQ <print>)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <sta> pattern: (pat.Words words:[{<sta>} {<stac>} {<stack>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_show_stack['> pairs: [ (AssignPair left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_show_stack['> lhs: (sh_lhs_expr.IndexedName left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_show_stack['> name: _Dbg_sig_show_stack index: ($ Id.Lit_ArithVarLike signum) ) op: assign_op.Equal rhs: {(SQ <showstack>)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <sto> pattern: (pat.Words words:[{<sto>} {<stop>}]) middle: <Id.Right_CasePat _> action: [ (command.ShAssignment left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> pairs: [ (AssignPair left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> lhs: (sh_lhs_expr.IndexedName left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_stop['> name: _Dbg_sig_stop index: ($ Id.Lit_ArithVarLike signum) ) op: assign_op.Equal rhs: {(SQ <stop>)} ) ] redirects: [] ) (command.ShAssignment left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> pairs: [ (AssignPair left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> lhs: (sh_lhs_expr.IndexedName left: <Id.Lit_ArrayLhsOpen '_Dbg_sig_print['> name: _Dbg_sig_print index: ($ Id.Lit_ArithVarLike signum) ) op: assign_op.Equal rhs: {(SQ <print>)} ) ] redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <Id.Lit_Star '*'> pattern: (pat.Words words:[{<Id.Lit_Star '*'>}]) middle: <Id.Right_CasePat _> action: [ (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 cmd) ) 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 < 'Need to give a command: stop, nostop, stack, nostack, print, noprint' > ) } ] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<4>} ) ] spids: [508 520] ) ] else_kw: <Id.KW_Else else> else_action: [ (command.Simple blame_tok: <_Dbg_errmsg> more_env: [] words: [ {<_Dbg_errmsg>} {(DQ <'Invalid handler command '> ($ Id.VSub_DollarName cmd))} ] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<5>} ) ] fi_kw: <Id.KW_Fi fi> redirects: [] ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) (command.ControlFlow keyword:<Id.ControlFlow_Return return> arg_word:{<0>}) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) ] )