(command.CommandList children: [ (command.Simple blame_tok: <_Dbg_help_add_sub> more_env: [] words: [ {<_Dbg_help_add_sub>} {<set>} {<history>} { (SQ <'**set history save** [**on**|**off**]\n'> <'\n'> <'**set history size** *num*\n'> <'\n'> <'**set history filename** *path*\n'> <'\n'> <'In the first form, set whether to save history.\n'> <'\n'> <'In the second form, how many history lines to save is indicated.\n'> <'\n'> <'In the third form, the place to store the history file is given.\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>} {<history> <Id.Lit_ArrayLhsClose ']='> (SQ <_Dbg_complete_history>)} ] redirects: [] do_fork: T ) (command.ShFunction name_tok: <_Dbg_complete_history> name: _Dbg_complete_history 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: [{<save>} {<size>}] right: <Id.Right_ShArrayLiteral _> ) } ) ] redirects: [] ) ] redirects: [] right: <Id.Lit_RBrace '}'> ) ) (command.ShFunction name_tok: <_Dbg_do_set_history> name: _Dbg_do_set_history body: (BraceGroup left: <Id.Lit_LBrace '{'> children: [ (command.Case case_kw: <Id.KW_Case case> to_match: (case_arg.Word w:{(DQ ($ Id.VSub_Number 1))}) arms_start: <Id.KW_In in> arms: [ (CaseArm left: <sa> pattern: (pat.Words words:[{<sa>} {<sav>} {<save>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <typeset> more_env: [] words: [ {<typeset>} {<Id.Lit_VarLike 'onoff='> (BracedVarSub left: <Id.Left_DollarBrace '${'> token: <Id.VSub_Number 2> var_name: 2 suffix_op: (suffix_op.Unary op: <Id.VTest_ColonHyphen _> arg_word: {(SQ <on>)} ) 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>} {<1>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <_Dbg_write_journal_eval> more_env: [] words: [{<_Dbg_write_journal_eval>} {(DQ <'_Dbg_set_history=1'>)}] redirects: [] do_fork: T ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <off> pattern: (pat.Words words:[{<off>} {<0>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <_Dbg_write_journal_eval> more_env: [] words: [{<_Dbg_write_journal_eval>} {(DQ <'_Dbg_set_history=0'>)}] 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>} { (DQ (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\"'> ch: '"' ) <on> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' or '> (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\"'> ch: '"' ) <off> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' expected.'> ) } ] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] right: <Id.Op_DSemi _> ) ] arms_end: <Id.KW_Esac esac> redirects: [] ) ] right: <Id.Op_DSemi _> ) (CaseArm left: <si> pattern: (pat.Words words:[{<si>} {<siz>} {<size>}]) middle: <Id.Right_CasePat _> action: [ (command.Simple blame_tok: <eval> more_env: [] words: [{<eval>} {(DQ ($ Id.VSub_DollarName _seteglob))}] 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_Number 2)} ) 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 <'Argument required (integer to set it to.).'>)} ] redirects: [] do_fork: T ) ] spids: [246 258] ) (IfArm keyword: <Id.KW_Elif elif> cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket left: <Id.KW_DLeftBracket '[['> expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_Number 2)} right: {($ Id.VSub_DollarName int_pat)} ) 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 <'Integer argument expected; got: '> ($ Id.VSub_Number 2))} ] redirects: [] do_fork: T ) (command.Simple blame_tok: <eval> more_env: [] words: [{<eval>} {(DQ ($ Id.VSub_DollarName _resteglob))}] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] spids: [268 282] ) ] else_action: [] fi_kw: <Id.KW_Fi fi> redirects: [] ) (command.Simple blame_tok: <eval> more_env: [] words: [{<eval>} {(DQ ($ Id.VSub_DollarName _resteglob))}] redirects: [] do_fork: T ) (command.Simple blame_tok: <_Dbg_write_journal_eval> more_env: [] words: [ {<_Dbg_write_journal_eval>} {(DQ <'_Dbg_history_length='> ($ Id.VSub_Number 2))} ] 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>} { (DQ (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <save> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <', or '> (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\"'> ch: '"' ) <size> (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\"'> ch:'"') <' expected.'> ) } ] redirects: [] do_fork: T ) (command.ControlFlow keyword: <Id.ControlFlow_Return return> arg_word: {<1>} ) ] 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 '}'> ) ) ] )