(command.CommandList children: [ (command.AndOr ops: [Id.Op_DPipe Id.Op_DPipe] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$OSTYPE')} right: {(Id.Lit_Other '*') (word_part.ExtGlob op: (Token id:Id.ExtGlob_At val:'@(' span_id:11) arms: [{(darwin)} {(freebsd)} {(solaris)} {(cygwin)} {(openbsd)}] ) (Id.Lit_Other '*') } ) ) (C {(_userland)} {(GNU)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:36) arg_word: {(1)} ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _man body: (command.BraceGroup children: [ (C {(local)} {(cur)} {(prev)} {(words)} {(cword)} {(split)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(_init_completion)} {(-s)} {(-n)} {(Id.Lit_Other ':')}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:71) ) ] ) (C {(local)} {(Id.Lit_VarLike 'comprsuffix=') (DQ ('.@([glx]z|bz2|lzma|Z)'))}) (C {(local)} {(Id.Lit_VarLike 'manext=') (DQ ('@([0-9lnp]|[0-9][px]|man|3?(gl|pm))?(') ($ Id.VSub_DollarName '$comprsuffix') (')') ) } ) (C {(local)} {(Id.Lit_VarLike 'mansect=') (DQ ('@([0-9lnp]|[0-9][px]|3?(gl|pm))'))}) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-C)} {(--config-file)}] action: [ (C {(_filedir)} {(conf)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:120) ) ] spids: [109 112 123 -1] ) (case_arm pat_list: [{(-l)} {(--local-file)}] action: [ (C {(_filedir)} {(DQ ($ Id.VSub_DollarName '$manext'))}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:139) ) ] spids: [126 129 142 -1] ) (case_arm pat_list: [{(-M)} {(--manpath)}] action: [ (C {(_filedir)} {(-d)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:156) ) ] spids: [145 148 159 -1] ) (case_arm pat_list: [{(-P)} {(--pager)}] action: [ (C {(compopt)} {(-o)} {(filenames)}) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:176) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 178 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-c)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [175] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:195) ) ] spids: [162 165 198 -1] ) (case_arm pat_list: [{(-p)} {(--preprocessor)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:208) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 210 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'e p t g r v' span_id: 217 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [207] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:231) ) ] spids: [201 204 234 -1] ) (case_arm pat_list: [ {(-L)} {(--locale)} {(-m)} {(--systems)} {(-e)} {(--extension)} {(-r)} {(--prompt)} {(-R)} {(--recode)} {(-E)} {(--encoding)} ] action: [ (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:265) ) ] spids: [237 262 268 -1] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {($ Id.VSub_DollarName '$split')}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:279) ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: {(-) (Id.Lit_Other '*')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:295) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:301) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 303 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( _parse_help "$1" -h )' span_id: 310 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [300] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$COMPREPLY')} right: {(Id.Lit_Other '*') (Id.BoolBinary_GlobEqual '=')} ) ) (C {(compopt)} {(-o)} {(nospace)}) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:344) ) ] spids: [283 297] ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(_expand)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:355) arg_word: {(0)} ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$cur'))} right: { (word_part.ExtGlob op: (Token id:Id.ExtGlob_At val:'@(' span_id:375) arms: [{(Id.Lit_Other '*') (/)} {('[.~]')}] ) (Id.Lit_Other '*') } ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:384) ) ] action: [ (C {(_filedir)} {(DQ ($ Id.VSub_DollarName '$manext'))}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:396) arg_word: {(0)} ) ] spids: [365 386] ) ] ) (C {(local)} {(manpath)}) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.AndOr ops: [Id.Op_DPipe] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$OSTYPE')} right: {(Id.Lit_Other '*') (word_part.ExtGlob op: (Token id:Id.ExtGlob_At val:'@(' span_id:419) arms: [{(darwin)} {(linux)} {(freebsd)} {(cygwin)}] ) (Id.Lit_Other '*') } ) ) (C {(_userland)} {(GNU)}) ] ) terminator: (Token id:Id.Op_Semi val:';' span_id:437) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:manpath) op: assign_op.Equal rhs: { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:443) command_list: (command.CommandList children: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{(manpath)}] redirects: [ (redir.Redir op: (Token id: Id.Redir_Great val: '2>' span_id: 447 ) fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(command)} {(man)} {(-w)}) ] ) ] ) ) } spids: [442] ) ] ) ] spids: [410 439] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:manpath) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$MANPATH')} spids: [464] ) ] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_z child: {($ Id.VSub_DollarName '$manpath')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:481) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:487) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 489 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-c)} {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [486] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:506) arg_word: {(0)} ) ] spids: [472 483] ) ] ) (C {(local)} {(sect)}) (command.AndOr ops: [Id.Op_DAmp Id.Op_DPipe] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {(DQ ($ Id.VSub_DollarName '$prev'))} right: {($ Id.VSub_DollarName '$mansect')} ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:sect) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$prev')} spids: [538] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:sect) op: assign_op.Equal rhs: {(SQ (Token id:Id.Lit_Chars val:'*' span_id:545))} spids: [543] ) ] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:manpath) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$manpath') (Id.Lit_Other ':')} spids: [550] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_n child: {($ Id.VSub_DollarName '$cur')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:564) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:manpath) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:manpath span_id:572) suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Id.Lit_Slash /) ('*man') ($ Id.VSub_DollarName '$sect') (Id.Lit_Slash /) ($ Id.VSub_DollarName '$cur') ('* ') } replace_mode: Id.Lit_Slash ) ) (' ') (braced_var_sub token: (Token id:Id.VSub_Name val:manpath span_id:586) suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Id.Lit_Slash /) ('*cat') ($ Id.VSub_DollarName '$sect') (Id.Lit_Slash /) ($ Id.VSub_DollarName '$cur') ('* ') } replace_mode: Id.Lit_Slash ) ) ) } spids: [569] ) ] ) ] spids: [555 566] ) ] else_action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:manpath) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:manpath span_id:607) suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Id.Lit_Slash /) ('*man') ($ Id.VSub_DollarName '$sect') (Id.Lit_Slash /) (' ') } replace_mode: Id.Lit_Slash ) ) (' ') (braced_var_sub token: (Token id:Id.VSub_Name val:manpath span_id:620) suffix_op: (suffix_op.PatSub pat: {(':')} replace: {(Id.Lit_Slash /) ('*cat') ($ Id.VSub_DollarName '$sect') (Id.Lit_Slash /) (' ') } replace_mode: Id.Lit_Slash ) ) ) } spids: [604] ) ] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:643) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:645) command_list: (command.CommandList children: [ (command.Simple words: [ {(eval)} {(command)} {(ls)} {(DQ ($ Id.VSub_DollarName '$manpath'))} ] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:657) fd: 2 arg_word: {(/dev/null)} ) ] ) ] ) ) } ] ) } spids: [642] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:670) words: [ { (braced_var_sub token: (Token id:Id.VSub_Name val:COMPREPLY span_id:673) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) suffix_op: (suffix_op.Unary op_id: Id.VOp1_DPound arg_word: {('*') (Id.Lit_Slash /) ('?(:)')} ) ) } ] ) } spids: [669] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:691) words: [ { (braced_var_sub token: (Token id:Id.VSub_Name val:COMPREPLY span_id:694) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) suffix_op: (suffix_op.Unary op_id: Id.VOp1_Percent arg_word: {($ Id.VSub_DollarName '$comprsuffix')} ) ) } ] ) } spids: [690] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: (Token id:Id.Op_LParen val:'(' span_id:706) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:708) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '${COMPREPLY[@]%.*}' span_id: 715 ) ) } {(--)} { (DQ (braced_var_sub token: (Token id:Id.VSub_Name val:cur span_id:722) suffix_op: (suffix_op.PatSub pat: { (word_part.EscapedLiteral token: (Token id: Id.Lit_EscapedChar val: '\\\\' span_id: 725 ) ) (word_part.EscapedLiteral token:(Token id:Id.Lit_EscapedChar val:'\\\\' span_id:726)) } replace: (word.Empty) replace_mode: Id.Lit_Slash ) ) ) } ) ] ) ) } ] ) } spids: [705] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {(DQ ($ Id.VSub_DollarName '$prev'))} right: {($ Id.VSub_DollarName '$mansect')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:750) ) ] action: [ (C {(local)} {(i)} {(Id.Lit_VarLike 'start=') (braced_var_sub token: (Token id:Id.VSub_Name val:COMPREPLY span_id:770) prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) (C {(_filedir)} {(DQ ($ Id.VSub_DollarName '$manext'))}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: (sh_lhs_expr.Name name:i) right: (arith_expr.ArithWord w:{($ Id.VSub_DollarName '$start')}) ) cond: (arith_expr.Binary op_id: Id.Arith_Less left: (arith_expr.VarRef token: (Token id:Id.Lit_ArithVarLike val:i span_id:793) ) right: (arith_expr.ArithWord w: { (braced_var_sub token: (Token id:Id.VSub_Name val:COMPREPLY span_id:799) prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) ) update: (arith_expr.UnaryAssign op_id: Id.Node_PostDPlus child: (sh_lhs_expr.Name name:i) ) body: (command.DoGroup children: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: (Token id: Id.VSub_Name val: COMPREPLY span_id: 819 ) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 821 ) ) ) ) } right: {(Id.Lit_Other '*') (/) (Id.Lit_Other '*')} ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.IndexedName name: COMPREPLY index: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 846 ) ) ) op: assign_op.Equal rhs: {(./) (braced_var_sub token: (Token id: Id.VSub_Name val: COMPREPLY span_id: 840 ) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: i span_id: 842 ) ) ) ) } spids: [835] ) ] ) ] ) ] ) ) ] spids: [737 752] ) ] ) (C {(__ltrim_colon_completions)} {(DQ ($ Id.VSub_DollarName '$cur'))}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:863) arg_word: {(0)} ) ] ) ) (C {(complete)} {(-F)} {(_man)} {(man)} {(apropos)} {(whatis)}) ] ) ] )