(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _info 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.AndOr ops: [Op_DPipe] children: [ (C {(_expand)}) (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: { (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{(Lit_Other '*') (/)} {('[.~]')}] spids: [58 63] ) (Lit_Other '*') } ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_filedir)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [16777215 69] ) ] spids: [16777215 80] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [ {(-k)} {(--apropos)} {(--index-search)} {(-n)} {(--node)} {(-h)} {(--help)} {(-v)} {(--version)} ] action: [(command.ControlFlow token:<ControlFlow_Return return>)] spids: [91 108 114 16777215] ) (case_arm pat_list: [{(-d)}] action: [ (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_Number 1> suffix_op: (suffix_op.StringUnary op_id: VOp1_DPound arg_word: {('*') (Lit_Slash /)} ) spids: [125 130] ) } right: {(info)} ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_filedir)} {(-d)}) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [16777215 139] ) ] spids: [16777215 150] ) ] spids: [117 118 153 16777215] ) (case_arm pat_list: [{(--directory)}] action: [ (C {(_filedir)} {(-d)}) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [156 157 168 16777215] ) (case_arm pat_list: [ {(--dribble)} {(-f)} {(--file)} {(-o)} {(--output)} {(--restore)} {(-r)} {(--raw-filename)} {(--rcfile)} ] action: [(C {(_filedir)}) (command.ControlFlow token:<ControlFlow_Return return>)] spids: [171 188 197 16777215] ) ] spids: [84 88 200] ) (command.AndOr ops: [Op_DAmp] children: [ (C {($ VSub_DollarName '$split')}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ 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:[229]) 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: [232 248] ) } ] ) } spids: [229] ) ] spids: [229] ) (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>) ] spids: [16777215 226] ) ] spids: [16777215 276] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:i spids:[282]) op: Equal spids: [282] ) (assign_pair lhs: (lhs_expr.LhsName name:infopath spids:[284]) op: Equal rhs: {(/usr/share/info)} spids: [284] ) ] spids: [280] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$INFOPATH')} right: {(Lit_Other '*') (Lit_Other ':')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:infopath spids:[306]) op: Equal rhs: {(${ VSub_Name INFOPATH) (${ VSub_Name infopath)} spids: [306] ) ] spids: [306] ) ] spids: [16777215 303] ) (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.WordTest w: { (word_part.BracedVarSub token: <VSub_Name INFOPATH> suffix_op: (suffix_op.StringUnary op_id: VTest_ColonPlus arg_word: {(set)} ) spids: [319 323] ) } ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:infopath spids:[331]) op: Equal rhs: {($ VSub_DollarName '$INFOPATH')} spids: [331] ) ] spids: [331] ) ] spids: [315 328] ) ] spids: [16777215 335] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:infopath spids:[339]) op: Equal rhs: {($ VSub_DollarName '$infopath') (Lit_Other ':')} spids: [339] ) ] spids: [339] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_n child: {($ VSub_DollarName '$cur')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:infopath spids:[358]) op: Equal rhs: { (DQ (word_part.BracedVarSub token: <VSub_Name infopath> suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Lit_Slash /) ($ VSub_DollarName '$cur') ('* ')} replace_mode: Lit_Slash spids: [362] ) spids: [360 369] ) ) } spids: [358] ) ] spids: [358] ) ] spids: [16777215 355] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:infopath spids:[376]) op: Equal rhs: { (DQ (word_part.BracedVarSub token: <VSub_Name infopath> suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Lit_Slash /) (' ')} replace_mode: Lit_Slash spids: [380] ) spids: [378 386] ) ) } spids: [376] ) ] spids: [376] ) ] spids: [373 390] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[398]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.SimpleCommand words: [ {(eval)} {(command)} {(ls)} {(DQ ($ VSub_DollarName '$infopath'))} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [401 416] ) } ] ) } spids: [398] ) ] spids: [398] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[425]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.BracedVarSub token: <VSub_Name COMPREPLY> bracket_op: (bracket_op.WholeArray op_id:Lit_At) suffix_op: (suffix_op.StringUnary op_id: VOp1_DPound arg_word: {('*') (Lit_Slash /) ('?(:)')} ) spids: [428 437] ) } ] ) } spids: [425] ) ] spids: [425] ) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i spids:[450]) 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.ArithWord w: { (word_part.BracedVarSub token: <VSub_Name COMPREPLY> prefix_op: VSub_Pound bracket_op: (bracket_op.WholeArray op_id:Lit_At) spids: [460 466] ) } ) ) update: (arith_expr.UnaryAssign op_id: Arith_DPlus child: (lhs_expr.LhsName name:i spids:[471]) ) body: (command.DoGroup children: [ (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: { (word_part.BracedVarSub token: <VSub_Name COMPREPLY> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithWord w:{($ VSub_DollarName '$i')}) ) spids: [482 487] ) } right: {(dir)} ) ) (C {(unset)} {(DQ ('COMPREPLY[') ($ VSub_DollarName '$i') (']'))}) ] ) ] spids: [477 506] ) ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[513]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.BracedVarSub token: <VSub_Name COMPREPLY> bracket_op: (bracket_op.WholeArray op_id:Lit_At) suffix_op: (suffix_op.StringUnary op_id: VOp1_Percent arg_word: {('.@(gz|bz2|xz|lzma)')} ) spids: [516 523] ) } ] ) } spids: [513] ) ] spids: [513] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[528]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'${COMPREPLY[@]%.*}'>)} {(--)} { (DQ (word_part.BracedVarSub token: <VSub_Name cur> suffix_op: (suffix_op.PatSub pat: { (word_part.EscapedLiteralPart token: <Lit_EscapedChar '\\\\'> ) (word_part.EscapedLiteralPart token:<Lit_EscapedChar '\\\\'>) } replace: (word.EmptyWord) replace_mode: Lit_Slash spids: [546] ) spids: [544 551] ) ) } ) ] ) left_token: <Left_CommandSub '$('> spids: [531 554] ) } ] ) } spids: [528] ) ] spids: [528] ) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_info)} {(info)} {(pinfo)}) ] )