(command.CommandList children: [ (command.FuncDef name: _yum_list body: (command.BraceGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_Number '$1'))} right: {(all)} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[45]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.SimpleCommand words: [ {(yum)} {(-d)} {(0)} {(-C)} {(list)} {($ VSub_Number '$1')} {(DQ ($ VSub_DollarName '$cur') ('*'))} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-ne)} {(SQ <'/^Available /d'>)} {(-e)} {(SQ <'/^Installed /d'>)} {(-e)} {(SQ <'/^Updated /d'>)} {(-e)} {(SQ <'s/[[:space:]].*//p'>)} ) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [48 102] ) } ] ) } spids: [45] ) ] spids: [45] ) ] spids: [16777215 34] ) ] else_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: [ (command.Pipeline children: [ (command.SimpleCommand words: [ {(yum)} {(-d)} {(0)} {(-C)} {(list)} {($ VSub_Number '$1')} {(DQ ($ VSub_DollarName '$cur') ('*'))} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-ne)} {(1d)} {(-e)} {(SQ <'s/[[:space:]].*//p'>)}) ] negated: F ) ] ) left_token: <Left_CommandSub '$('> spids: [117 155] ) } ] ) } spids: [114] ) ] spids: [114] ) ] spids: [107 160] ) ] spids: [15] ) spids: [11 14] ) (command.FuncDef name: _yum_repolist body: (command.BraceGroup children: [ (command.Pipeline children: [ (command.SimpleCommand words: [{(yum)} {(--noplugins)} {(-C)} {(repolist)} {($ VSub_Number '$1')}] redirects: [(redir.Redir op:<Redir_Great '2>'> fd:2 arg_word:{(/dev/null)})] ) (C {(sed)} {(-ne)} {(SQ <'/^repo\\s\\s*id/d'>)} {(-e)} {(SQ <'/^repolist:/d'>)} {(-e)} {(SQ <'s/[[:space:]].*//p'>)} ) ] negated: F ) ] spids: [169] ) spids: [165 168] ) (command.FuncDef name: _yum_plugins body: (command.BraceGroup children: [ (command.Pipeline children: [ (command.SimpleCommand words: [ {(command)} {(ls)} (word.BracedWordTree parts: [ (/usr/lib/yum-plugins/) (Lit_Other '*') (.py) (word_part.BracedAltPart words:[{} {(c)} {(o)}]) ] ) ] redirects: [(redir.Redir op:<Redir_Great '2>'> fd:2 arg_word:{(/dev/null)})] ) (C {(sed)} {(-ne)} {(SQ <'s|.*/\\([^./]*\\)\\.py[co]\\{0,1\\}$|\\1|p'>)}) (C {(sort)} {(-u)}) ] negated: F ) ] spids: [228] ) spids: [224 227] ) (command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _yum body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[278]) op: Equal spids: [278] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[280]) op: Equal spids: [280] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[282]) op: Equal spids: [282] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[284]) op: Equal spids: [284] ) (assign_pair lhs: (lhs_expr.LhsName name:split spids:[286]) op: Equal spids: [286] ) ] spids: [276] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)} {(-s)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:special spids:[301]) op: Equal spids: [301] ) (assign_pair lhs: (lhs_expr.LhsName name:i spids:[303]) op: Equal spids: [303] ) ] spids: [299] ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i spids:[310]) right: (arith_expr.ArithWord w:{(Lit_Digits 0)}) ) cond: (arith_expr.ArithBinary op_id: Arith_Less left: (arith_expr.ArithVarRef token:<Lit_ArithVarLike 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: [319 325] ) } ) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) ) update: (arith_expr.UnaryAssign op_id: Node_PostDPlus child: (lhs_expr.LhsName name:i spids:[330]) ) 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: [344 349] ) } right: { (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [ {(install)} {(update)} {(upgrade)} {(remove)} {(erase)} {(deplist)} {(info)} ] spids: [353 367] ) } ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:special spids:[375]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token: <Lit_ArithVarLike i> ) ) spids: [376 381] ) } spids: [375] ) ] spids: [375] ) ] spids: [16777215 372] ) ] spids: [16777215 384] ) ] spids: [337 387] ) ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_n child: {($ VSub_DollarName '$special')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: { (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{(Lit_Other '*') (/)} {('[.~]')}] spids: [419 424] ) (Lit_Other '*') } ) right: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$special'))} right: { (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{(deplist)} {(install)} {(update)} {(upgrade)}] spids: [437 445] ) } ) ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_filedir)} {(rpm)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [16777215 450] ) ] spids: [16777215 463] ) (command.Case to_match: {($ VSub_DollarName '$special')} arms: [ (case_arm pat_list: [{(install)}] action: [ (C {(_yum_list)} {(available)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [473 474 487 16777215] ) (case_arm pat_list: [{(deplist)} {(info)}] action: [ (C {(_yum_list)} {(all)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [490 493 506 16777215] ) (case_arm pat_list: [{(upgrade)} {(update)}] action: [ (C {(_yum_list)} {(updates)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [509 512 525 16777215] ) (case_arm pat_list: [{(remove)} {(erase)}] action: [ (C {(_yum_list)} {(installed)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [528 531 548 16777215] ) ] spids: [466 470 551] ) ] spids: [16777215 402] ) ] spids: [16777215 554] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(list)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[569]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'all available updates installed extras\n'> <' obsoletes recent'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [572 589] ) } ] ) } spids: [569] ) ] spids: [569] ) ] spids: [565 566 594 16777215] ) (case_arm pat_list: [{(clean)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[601]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'packages headers metadata cache dbcache\n'> <' all'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [604 621] ) } ] ) } spids: [601] ) ] spids: [601] ) ] spids: [597 598 626 16777215] ) (case_arm pat_list: [{(repolist)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[633]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'all enabled disabled'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [636 652] ) } ] ) } spids: [633] ) ] spids: [633] ) ] spids: [629 630 657 16777215] ) (case_arm pat_list: [{(localinstall)} {(localupdate)}] action: [(C {(_filedir)} {(rpm)})] spids: [660 663 675 16777215] ) (case_arm pat_list: [{(-d)} {(-e)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[684]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'{0..10}'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [687 703] ) } ] ) } spids: [684] ) ] spids: [684] ) ] spids: [678 681 708 16777215] ) (case_arm pat_list: [{(-c)}] action: [(C {(_filedir)})] spids: [711 712 718 16777215] ) (case_arm pat_list: [{(--installroot)}] action: [(C {(_filedir)} {(-d)})] spids: [721 722 730 16777215] ) (case_arm pat_list: [{(--enablerepo)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[737]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _yum_repolist disabled )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [740 758] ) } ] ) } spids: [737] ) ] spids: [737] ) ] spids: [733 734 763 16777215] ) (case_arm pat_list: [{(--disablerepo)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[770]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _yum_repolist enabled )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [773 789] ) } ] ) } spids: [770] ) ] spids: [770] ) ] spids: [766 767 794 16777215] ) (case_arm pat_list: [{(--disableexcludes)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[801]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _yum_repolist all ) all main'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [804 822] ) } ] ) } spids: [801] ) ] spids: [801] ) ] spids: [797 798 827 16777215] ) (case_arm pat_list: [{(--enableplugin)} {(--disableplugin)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[836]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _yum_plugins )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [839 855] ) } ] ) } spids: [836] ) ] spids: [836] ) ] spids: [830 833 860 16777215] ) (case_arm pat_list: [{(--color)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[867]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'always auto never'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [870 886] ) } ] ) } spids: [867] ) ] spids: [867] ) ] spids: [863 864 891 16777215] ) (case_arm pat_list: [{(-R)} {(-x)} {(--exclude)}] action: [(command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})] spids: [894 899 911 16777215] ) (case_arm pat_list: [{(-h)} {(--help)} {(--version)}] action: [(command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})] spids: [914 919 931 16777215] ) (case_arm pat_list: [{(Lit_Other '*')}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[938]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'install update check-update upgrade\n'> < ' remove erase list info provides whatprovides clean makecache\n' > <' groupinstall groupupdate grouplist groupremove groupinfo\n'> < ' search shell resolvedep localinstall localupdate deplist\n' > <' repolist help'> ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [941 961] ) } ] ) } spids: [938] ) ] spids: [938] ) ] spids: [934 935 966 16777215] ) ] spids: [558 562 969] ) (command.AndOr ops: [Op_DAmp] children: [ (C {($ VSub_DollarName '$split')}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: {(-) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[1002]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [1005 1021] ) } ] ) } spids: [1002] ) ] spids: [1002] ) (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)}) ] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [16777215 999] ) ] spids: [16777215 1051] ) ] spids: [273] ) spids: [269 272] ) (C {(complete)} {(-F)} {(_yum)} {(yum)}) ] ) ] )