(command.CommandList children: [ (command.AndOr ops: [Op_DPipe Op_DPipe] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$OSTYPE')} right: {(Lit_Other '*') (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{(darwin)} {(freebsd)} {(solaris)} {(cygwin)} {(openbsd)}] spids: [11 21] ) (Lit_Other '*') } ) ) (C {(_userland)} {(GNU)}) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(1)}) ] ) (command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _man body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[50]) op: Equal spids: [50] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[52]) op: Equal spids: [52] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[54]) op: Equal spids: [54] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[56]) op: Equal spids: [56] ) (assign_pair lhs: (lhs_expr.LhsName name:split spids:[58]) op: Equal spids: [58] ) ] spids: [48] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)} {(-s)} {(-n)} {(Lit_Other ':')}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:comprsuffix spids:[77]) op: Equal rhs: {(DQ ('.@([glx]z|bz2|lzma|Z)'))} spids: [77] ) ] spids: [75] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:manext spids:[85]) op: Equal rhs: { (DQ ('@([0-9lnp]|[0-9][px]|man|3?(gl|pm))?(') ($ VSub_DollarName '$comprsuffix') (')') ) } spids: [85] ) ] spids: [83] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:mansect spids:[95]) op: Equal rhs: {(DQ ('@([0-9lnp]|[0-9][px]|3?(gl|pm))'))} spids: [95] ) ] spids: [93] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-C)} {(--config-file)}] action: [ (C {(_filedir)} {(conf)}) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [109 112 123 16777215] ) (case_arm pat_list: [{(-l)} {(--local-file)}] action: [ (C {(_filedir)} {(DQ ($ VSub_DollarName '$manext'))}) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [126 129 142 16777215] ) (case_arm pat_list: [{(-M)} {(--manpath)}] action: [ (C {(_filedir)} {(-d)}) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [145 148 159 16777215] ) (case_arm pat_list: [{(-P)} {(--pager)}] action: [ (C {(compopt)} {(-o)} {(filenames)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[175]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-c)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [178 190] ) } ] ) } spids: [175] ) ] spids: [175] ) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [162 165 198 16777215] ) (case_arm pat_list: [{(-p)} {(--preprocessor)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[207]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'e p t g r v'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [210 226] ) } ] ) } spids: [207] ) ] spids: [207] ) (command.ControlFlow token: <ControlFlow_Return return> ) ] spids: [201 204 234 16777215] ) (case_arm pat_list: [ {(-L)} {(--locale)} {(-m)} {(--systems)} {(-e)} {(--extension)} {(-r)} {(--prompt)} {(-R)} {(--recode)} {(-E)} {(--encoding)} ] action: [(command.ControlFlow token:<ControlFlow_Return return>)] spids: [237 262 268 16777215] ) ] spids: [102 106 271] ) (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:[300]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" -h )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [303 319] ) } ] ) } spids: [300] ) ] spids: [300] ) (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 297] ) ] spids: [16777215 347] ) (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: [375 380] ) (Lit_Other '*') } ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(_filedir)} {(DQ ($ VSub_DollarName '$manext'))}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [16777215 386] ) ] spids: [16777215 401] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:manpath spids:[407]) op: Equal spids: [407] ) ] spids: [405] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Op_DPipe] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$OSTYPE')} right: {(Lit_Other '*') (word_part.ExtGlobPart op: <ExtGlob_At '@('> arms: [{(darwin)} {(linux)} {(freebsd)} {(cygwin)}] spids: [419 427] ) (Lit_Other '*') } ) ) (C {(_userland)} {(GNU)}) ] ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:manpath spids:[442]) op: Equal rhs: { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.AndOr ops: [Op_DPipe] children: [ (command.SimpleCommand words: [{(manpath)}] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(command)} {(man)} {(-w)}) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [443 458] ) } spids: [442] ) ] spids: [442] ) ] spids: [16777215 439] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:manpath spids:[464]) op: Equal rhs: {($ VSub_DollarName '$MANPATH')} spids: [464] ) ] spids: [464] ) ] spids: [461 468] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolUnary op_id: BoolUnary_z child: {($ VSub_DollarName '$manpath')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[486]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-c)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [489 501] ) } ] ) } spids: [486] ) ] spids: [486] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [16777215 483] ) ] spids: [16777215 511] ) (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:sect spids:[521]) op: Equal spids: [521] ) ] spids: [519] ) (command.AndOr ops: [Op_DAmp Op_DPipe] children: [ (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$prev'))} right: {($ VSub_DollarName '$mansect')} ) ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:sect spids:[538]) op: Equal rhs: {($ VSub_DollarName '$prev')} spids: [538] ) ] spids: [538] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:sect spids:[543]) op: Equal rhs: {(SQ <'*'>)} spids: [543] ) ] spids: [543] ) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:manpath spids:[550]) op: Equal rhs: {($ VSub_DollarName '$manpath') (Lit_Other ':')} spids: [550] ) ] spids: [550] ) (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:manpath spids:[569]) op: Equal rhs: { (DQ (word_part.BracedVarSub token: <VSub_Name manpath> suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Lit_Slash /) ('*man') ($ VSub_DollarName '$sect') (Lit_Slash /) ($ VSub_DollarName '$cur') ('* ') } replace_mode: Lit_Slash spids: [573] ) spids: [571 583] ) (' ') (word_part.BracedVarSub token: <VSub_Name manpath> suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Lit_Slash /) ('*cat') ($ VSub_DollarName '$sect') (Lit_Slash /) ($ VSub_DollarName '$cur') ('* ') } replace_mode: Lit_Slash spids: [587] ) spids: [585 597] ) ) } spids: [569] ) ] spids: [569] ) ] spids: [16777215 566] ) ] else_action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:manpath spids:[604]) op: Equal rhs: { (DQ (word_part.BracedVarSub token: <VSub_Name manpath> suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Lit_Slash /) ('*man') ($ VSub_DollarName '$sect') (Lit_Slash /) (' ') } replace_mode: Lit_Slash spids: [608] ) spids: [606 617] ) (' ') (word_part.BracedVarSub token: <VSub_Name manpath> suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Lit_Slash /) ('*cat') ($ VSub_DollarName '$sect') (Lit_Slash /) (' ') } replace_mode: Lit_Slash spids: [621] ) spids: [619 630] ) ) } spids: [604] ) ] spids: [604] ) ] spids: [601 634] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[642]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.SimpleCommand words: [ {(eval)} {(command)} {(ls)} {(DQ ($ VSub_DollarName '$manpath'))} ] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [645 660] ) } ] ) } spids: [642] ) ] spids: [642] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[669]) 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: [672 681] ) } ] ) } spids: [669] ) ] spids: [669] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[690]) 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: {($ VSub_DollarName '$comprsuffix')} ) spids: [693 700] ) } ] ) } spids: [690] ) ] spids: [690] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[705]) 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: [723] ) spids: [721 728] ) ) } ) ] ) left_token: <Left_CommandSub '$('> spids: [708 731] ) } ] ) } spids: [705] ) ] spids: [705] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobNEqual left: {(DQ ($ VSub_DollarName '$prev'))} right: {($ VSub_DollarName '$mansect')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:i spids:[765]) op: Equal spids: [765] ) (assign_pair lhs: (lhs_expr.LhsName name:start spids:[767]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name COMPREPLY> prefix_op: VSub_Pound bracket_op: (bracket_op.WholeArray op_id:Lit_At) spids: [768 774] ) } spids: [767] ) ] spids: [763] ) (C {(_filedir)} {(DQ ($ VSub_DollarName '$manext'))}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Arith_Equal left: (lhs_expr.LhsName name:i spids:[788]) right: (arith_expr.ArithWord w:{($ VSub_DollarName '$start')}) ) 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: [797 803] ) } ) ) update: (arith_expr.UnaryAssign op_id: Node_PostDPlus child: (lhs_expr.LhsName name:i spids:[806]) ) body: (command.DoGroup children: [ (command.AndOr ops: [Op_DPipe] 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.ArithVarRef token: <Lit_ArithVarLike i> ) ) spids: [818 823] ) } right: {(Lit_Other '*') (/) (Lit_Other '*')} ) ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsIndexedName name: COMPREPLY index: (arith_expr.ArithVarRef token: <Lit_ArithVarLike i> ) spids: [835] ) op: Equal rhs: {(./) (word_part.BracedVarSub token: <VSub_Name COMPREPLY> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithVarRef token: <Lit_ArithVarLike i> ) ) spids: [839 844] ) } spids: [835] ) ] spids: [835] ) ] ) ] spids: [813 847] ) ) ] spids: [16777215 752] ) ] spids: [16777215 850] ) (C {(__ltrim_colon_completions)} {(DQ ($ VSub_DollarName '$cur'))}) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] spids: [45] ) spids: [41 44] ) (C {(complete)} {(-F)} {(_man)} {(man)} {(apropos)} {(whatis)}) ] ) ] )