(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _sysbench body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[13]) op: Equal spids: [13] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[15]) op: Equal spids: [15] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[17]) op: Equal spids: [17] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[19]) op: Equal spids: [19] ) (assign_pair lhs: (lhs_expr.LhsName name:split spids:[21]) op: Equal spids: [21] ) ] spids: [11] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)} {(-s)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [ {(--num-threads)} {(--max-requests)} {(--max-time)} {(--thread-stack-size)} {(--help)} {(--version)} {(help)} {(version)} ] action: [(command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})] spids: [41 59 67 16777215] ) (case_arm pat_list: [{(--init-rng)} {(--debug)} {(--validate)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[78]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'on off'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [81 97] ) } ] ) } spids: [78] ) ] spids: [78] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [70 75 107 16777215] ) (case_arm pat_list: [{(--test)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[114]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'fileio cpu memory threads mutex oltp'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [117 135] ) } ] ) } spids: [114] ) ] spids: [114] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [110 111 145 16777215] ) (case_arm pat_list: [{(--cpu-max-prime)}] action: [(command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})] spids: [148 149 157 16777215] ) (case_arm pat_list: [{(--file-test-mode)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[164]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'seqwr seqrewr seqrd rndrd rndwr rndrw'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [167 185] ) } ] ) } spids: [164] ) ] spids: [164] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [160 161 195 16777215] ) (case_arm pat_list: [{(--file-io-mode)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[202]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'sync async fastmmap slowmmap'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [205 223] ) } ] ) } spids: [202] ) ] spids: [202] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [198 199 233 16777215] ) (case_arm pat_list: [{(--file-extra-flags)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[240]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'sync dsync direct'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [243 259] ) } ] ) } spids: [240] ) ] spids: [240] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [236 237 269 16777215] ) (case_arm pat_list: [{(--file-fsync-all)} {(--file-fsync-end)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[278]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'on off'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [281 297] ) } ] ) } spids: [278] ) ] spids: [278] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [272 275 307 16777215] ) (case_arm pat_list: [{(--file-fsync-mode)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[314]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'fsync fdatasync'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [317 333] ) } ] ) } spids: [314] ) ] spids: [314] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [310 311 343 16777215] ) (case_arm pat_list: [{(--memory-scope)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[350]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'global local'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [353 369] ) } ] ) } spids: [350] ) ] spids: [350] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [346 347 379 16777215] ) (case_arm pat_list: [{(--memory-hugetlb)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[386]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'on off'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [389 405] ) } ] ) } spids: [386] ) ] spids: [386] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [382 383 415 16777215] ) (case_arm pat_list: [{(--memory-oper)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[422]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'read write none'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [425 441] ) } ] ) } spids: [422] ) ] spids: [422] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [418 419 451 16777215] ) (case_arm pat_list: [{(--memory-access-mode)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[458]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'seq rnd'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [461 477] ) } ] ) } spids: [458] ) ] spids: [458] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [454 455 487 16777215] ) (case_arm pat_list: [{(--oltp-test-mode)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[494]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'simple complex nontrx sp'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [497 513] ) } ] ) } spids: [494] ) ] spids: [494] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [490 491 523 16777215] ) (case_arm pat_list: [{(--oltp-read-only)} {(--oltp-skip-trx)} {(--oltp-quto-inc)} {(--mysql-ssl)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[536]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'on off'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [539 555] ) } ] ) } spids: [536] ) ] spids: [536] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [526 533 565 16777215] ) (case_arm pat_list: [{(--oltp-nontrx-mode)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[572]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'select update_key update_nokey insert\n'> <' delete'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [575 592] ) } ] ) } spids: [572] ) ] spids: [572] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [568 569 602 16777215] ) (case_arm pat_list: [{(--oltp-dist-type)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[609]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'uniform gaussian special'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [612 628] ) } ] ) } spids: [609] ) ] spids: [609] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [605 606 638 16777215] ) (case_arm pat_list: [{(--db-driver)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[645]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (DQ (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.SimpleCommand words: [ {($ VSub_Number '$1')} {(--test) (Lit_Other '=') (oltp)} {(help)} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-e)} { (SQ < '/^.*database drivers:/,/^$/!d' > ) } {(-ne)} {(SQ <'s/^ *\\([^ ]*\\) .*/\\1/p'>)} ) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [655 687] ) ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [648 696] ) } ] ) } spids: [645] ) ] spids: [645] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [641 642 706 16777215] ) (case_arm pat_list: [{(--db-ps-mode)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[713]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'auto disable'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [716 732] ) } ] ) } spids: [713] ) ] spids: [713] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [709 710 742 16777215] ) (case_arm pat_list: [{(--mysql-socket)}] action: [ (C {(_filedir)} {(sock)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [745 746 759 16777215] ) (case_arm pat_list: [{(--mysql-table-engine)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[766]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'myisam innodb bdb heap ndbcluster\n'> <' federated'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [769 786] ) } ] ) } spids: [766] ) ] spids: [766] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [762 763 796 16777215] ) (case_arm pat_list: [{(--mysql-engine-trx)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[803]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'yes no auto'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [806 822] ) } ] ) } spids: [803] ) ] spids: [803] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [799 800 832 16777215] ) (case_arm pat_list: [{(--) (Lit_Other '*')}] action: [ (command.AndOr ops: [Op_DAmp] children: [ (C {($ VSub_DollarName '$split')}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] ) ] spids: [835 837 849 16777215] ) ] spids: [34 38 852] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:i spids:[862]) op: Equal spids: [862] ) (assign_pair lhs: (lhs_expr.LhsName name:test spids:[864]) op: Equal spids: [864] ) ] spids: [860] ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i spids:[871]) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) cond: (arith_expr.ArithBinary op_id: Arith_Less left: (arith_expr.ArithWord w:{($ VSub_DollarName '$i')}) right: (arith_expr.ArithBinary op_id: Arith_Minus left: (arith_expr.ArithWord w: { (word_part.BracedVarSub token: <VSub_Name words> prefix_op: VSub_Pound bracket_op: (bracket_op.WholeArray op_id:Lit_At) spids: [881 887] ) } ) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) ) update: (arith_expr.UnaryAssign op_id: Node_PostDPlus child: (lhs_expr.LhsName name:i spids:[893]) ) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: { (word_part.BracedVarSub token: <VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token: <Lit_ArithVarLike i> ) ) spids: [907 912] ) } right: {(--test) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test spids:[925]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token:<Lit_ArithVarLike i>) ) suffix_op: (suffix_op.StringUnary op_id: VOp1_Pound arg_word: {('*=')} ) spids: [926 933] ) } spids: [925] ) ] spids: [925] ) (command.ControlFlow token: <ControlFlow_Break break> ) ] spids: [16777215 922] ) ] spids: [16777215 939] ) ] spids: [900 942] ) ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opts spids:[948]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [(C {(_parse_help)} {(DQ ($ VSub_Number '$1'))})] ) left_token: <Left_CommandSub '$('> spids: [949 957] ) } spids: [948] ) ] spids: [946] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.WordTest w:{($ VSub_DollarName '$test')}) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:help spids:[974]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(_parse_help)} {(DQ ($ VSub_Number '$1'))} { (DQ ('--test=') ($ VSub_DollarName '$test') (' help')) } ) ] ) left_token: <Left_CommandSub '$('> spids: [977 991] ) } ] ) } spids: [974] ) ] spids: [972] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:opts spids:[996]) op: Equal rhs: { (DQ (word_part.BracedVarSub token: <VSub_Name opts> bracket_op: (bracket_op.WholeArray op_id:Lit_At) suffix_op: (suffix_op.PatSub pat: {('--test=')} replace: (word.EmptyWord) replace_mode: Undefined_Tok spids: [1003] ) spids: [998 1006] ) (' ') (word_part.BracedVarSub token: <VSub_Name help> bracket_op: (bracket_op.WholeArray op_id:Lit_At) spids: [1008 1013] ) (' prepare run cleanup help version') ) } spids: [996] ) ] spids: [996] ) ] spids: [16777215 969] ) ] spids: [16777215 1018] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalOr left: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: {(-) (Lit_Other '*')} ) right: (bool_expr.LogicalNot child: (bool_expr.WordTest w:{($ VSub_DollarName '$test')}) ) ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1047]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(DQ ($ VSub_DollarName '$opts'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [1050 1066] ) } ] ) } spids: [1047] ) ] spids: [1047] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$COMPREPLY')} right: {(Lit_Other '*') (BoolBinary_GlobEqual '=')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) ] spids: [16777215 1044] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1094]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(DQ ('prepare run cleanup help version'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [1097 1115] ) } ] ) } spids: [1094] ) ] spids: [1094] ) ] spids: [1091 1120] ) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_sysbench)} {(sysbench)}) ] )