(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: <Id.ExtGlob_At '@('> arms: [{<darwin>} {<freebsd>} {<solaris>} {<cygwin>} {<openbsd>}] ) <Id.Lit_Other '*'> } ) ) (C {<_userland>} {<GNU>}) (command.ControlFlow token:<Id.ControlFlow_Return return> 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:<Id.ControlFlow_Return return>) ] ) (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: <Id.ControlFlow_Return return> ) ] spids: [109 112 123 -1] ) (case_arm pat_list: [{<-l>} {<--local-file>}] action: [ (C {<_filedir>} {(DQ ($ Id.VSub_DollarName '$manext'))}) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] spids: [126 129 142 -1] ) (case_arm pat_list: [{<-M>} {<--manpath>}] action: [ (C {<_filedir>} {<-d>}) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] 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: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-c>} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [175] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] 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: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'e p t g r v'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [207] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] 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:<Id.ControlFlow_Return return>)] spids: [237 262 268 -1] ) ] ) (command.AndOr ops: [Id.Op_DAmp] children: [ (C {($ Id.VSub_DollarName '$split')}) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] ) (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: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'$( _parse_help "$1" -h )'>)} {<-->} {(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: <Id.ControlFlow_Return return> ) ] spids: [283 297] ) ] ) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<_expand>}) (command.ControlFlow token: <Id.ControlFlow_Return return> 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: <Id.ExtGlob_At '@('> arms: [{<Id.Lit_Other '*'> </>} {<'[.~]'>}] ) <Id.Lit_Other '*'> } ) ) terminator: <Id.Op_Semi _> ) ] action: [ (C {<_filedir>} {(DQ ($ Id.VSub_DollarName '$manext'))}) (command.ControlFlow token: <Id.ControlFlow_Return return> 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: <Id.ExtGlob_At '@('> arms: [{<darwin>} {<linux>} {<freebsd>} {<cygwin>}] ) <Id.Lit_Other '*'> } ) ) (C {<_userland>} {<GNU>}) ] ) terminator: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:manpath) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (command.AndOr ops: [Id.Op_DPipe] children: [ (command.Simple words: [{<manpath>}] redirects: [ (redir.Redir op: <Id.Redir_Great '2>'> 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: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:COMPREPLY) op: assign_op.Equal rhs: { (sh_array_literal left: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-c>} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [486] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> 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 <'*'>)} 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: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:manpath) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name manpath> 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: <Id.VSub_Name manpath> 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: <Id.VSub_Name manpath> 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: <Id.VSub_Name manpath> 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: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (command.Simple words: [ {<eval>} {<command>} {<ls>} {(DQ ($ Id.VSub_DollarName '$manpath'))} ] redirects: [ (redir.Redir op: <Id.Redir_Great '2>'> 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: <Id.Op_LParen _> words: [ { (braced_var_sub token: <Id.VSub_Name COMPREPLY> 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: <Id.Op_LParen _> words: [ { (braced_var_sub token: <Id.VSub_Name COMPREPLY> 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: <Id.Op_LParen _> words: [ { (command_sub left_token: <Id.Left_DollarParen '$('> command_list: (command.CommandList children: [ (C {<compgen>} {<-W>} {(SQ <'${COMPREPLY[@]%.*}'>)} {<-->} { (DQ (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.PatSub pat: { (word_part.EscapedLiteral token: <Id.Lit_EscapedChar '\\\\'> ) (word_part.EscapedLiteral token:<Id.Lit_EscapedChar '\\\\'>) } 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: <Id.Op_Semi _> ) ] action: [ (C {<local>} {<i>} {<Id.Lit_VarLike 'start='> (braced_var_sub token: <Id.VSub_Name COMPREPLY> 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:<Id.Lit_ArithVarLike i>) right: (arith_expr.ArithWord w: { (braced_var_sub token: <Id.VSub_Name COMPREPLY> 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: <Id.VSub_Name COMPREPLY> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: <Id.Lit_ArithVarLike i> ) ) ) } right: {<Id.Lit_Other '*'> </> <Id.Lit_Other '*'>} ) ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.IndexedName name: COMPREPLY index: (arith_expr.VarRef token:<Id.Lit_ArithVarLike i>) ) op: assign_op.Equal rhs: {<./> (braced_var_sub token: <Id.VSub_Name COMPREPLY> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: <Id.Lit_ArithVarLike i> ) ) ) } spids: [835] ) ] ) ] ) ] ) ) ] spids: [737 752] ) ] ) (C {<__ltrim_colon_completions>} {(DQ ($ Id.VSub_DollarName '$cur'))}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] ) ) (C {<complete>} {<-F>} {<_man>} {<man>} {<apropos>} {<whatis>}) ] ) ] )