(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _slapt_src 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>) ] ) (command.Case to_match: {(DQ ($ Id.VSub_DollarName '$prev'))} arms: [ (case_arm pat_list: [{<--config>} {<-c>}] action: [(C {<_filedir>}) (command.ControlFlow token:<Id.ControlFlow_Return return>)] spids: [47 50 59 -1] ) (case_arm pat_list: [{<--search>} {<-s>} {<--postprocess>} {<-p>}] action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)] spids: [62 69 79 -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: {(DQ ($ 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" --help )'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [113] ) ] ) (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.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.WordTest w:{($ Id.VSub_DollarName '$COMPREPLY')}) ) (command.ControlFlow token: <Id.ControlFlow_Return return> ) ] ) ] spids: [94 110] ) ] ) (C {<local>} {<i>} {<t>}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: (sh_lhs_expr.Name name:i) right: (arith_expr.Binary op_id: Id.Arith_Minus left: (arith_expr.ArithWord w: { (braced_var_sub token: <Id.VSub_Name words> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) right: (arith_expr.ArithWord w:{<Id.Lit_Digits 1>}) ) ) cond: (arith_expr.Binary op_id: Id.Arith_Great left: (arith_expr.VarRef token:<Id.Lit_ArithVarLike i>) right: (arith_expr.ArithWord w:{<Id.Lit_Digits 0>}) ) update: (arith_expr.UnaryAssign op_id: Id.Node_PostDMinus child: (sh_lhs_expr.Name name:i) ) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: <Id.Lit_ArithVarLike i> ) ) ) } right: {<-> (word_part.ExtGlob op: <Id.ExtGlob_At '@('> arms: [ {<'[iwfb]'>} {<-install>} {<-show>} {<-build>} {<-fetch>} ] ) } ) ) terminator: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:t) op: assign_op.Equal rhs: {(DQ <all>)} spids: [247] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [215 244] ) ] ) ] ) ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobNEqual left: {($ Id.VSub_DollarName '$t')} right: {<all>} ) ) terminator: <Id.Op_Semi _> ) ] action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)] spids: [262 275] ) ] ) (C {<local>} {<Id.Lit_VarLike 'config='> (DQ </etc/slapt-get/slapt-srcrc>)}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: (sh_lhs_expr.Name name:i) right: (arith_expr.Binary op_id: Id.Arith_Minus left: (arith_expr.ArithWord w: { (braced_var_sub token: <Id.VSub_Name words> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } ) right: (arith_expr.ArithWord w:{<Id.Lit_Digits 1>}) ) ) cond: (arith_expr.Binary op_id: Id.Arith_Great left: (arith_expr.VarRef token:<Id.Lit_ArithVarLike i>) right: (arith_expr.ArithWord w:{<Id.Lit_Digits 0>}) ) update: (arith_expr.UnaryAssign op_id: Id.Node_PostDMinus child: (sh_lhs_expr.Name name:i) ) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: <Id.Lit_ArithVarLike i> ) ) ) } right: {<-> (word_part.ExtGlob op: <Id.ExtGlob_At '@('> arms: [{<c>} {<-config>}] ) } ) ) terminator: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:config) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.Binary op_id: Id.Arith_Plus left: (arith_expr.VarRef token: <Id.Lit_ArithVarLike i> ) right: (arith_expr.ArithWord w:{<Id.Lit_Digits 1>}) ) ) ) ) } spids: [358] ) ] ) (C {<__expand_tilde_by_ref>} {<config>}) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [332 355] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token: <Id.Lit_ArithVarLike i> ) ) ) } right: {<--config> <Id.BoolBinary_GlobEqual '='> <Id.Lit_Other '?'> <Id.Lit_Other '*'> } ) ) terminator: <Id.Op_Semi _> ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:config) op: assign_op.Equal rhs: { (DQ (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.VarRef token:<Id.Lit_ArithVarLike i>) ) suffix_op: (suffix_op.Unary op_id: Id.VOp1_Pound arg_word: {<'*='>} ) ) ) } spids: [406] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [382 403] ) ] ) ] ) ) (command.AndOr ops: [Id.Op_DPipe] children: [ (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_r child: {(DQ ($ Id.VSub_DollarName '$config'))} ) ) (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: {(DQ ($ Id.VSub_DollarName '$cur'))} right: {<Id.Lit_Other '*'> <Id.Lit_Other ':'> <Id.Lit_Other '*'>} ) ) terminator: <Id.Op_Semi _> ) ] action: [ (C {<local>} {<Id.Lit_VarLike 'name='> (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary op_id:Id.VOp1_Percent arg_word:{<':*'>}) ) } ) (C {<local>} {<Id.Lit_VarLike 'version='> (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary op_id:Id.VOp1_DPound arg_word:{<'*:'>}) ) } ) (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.Pipeline children: [ (command.Simple words: [ {(DQ ($ Id.VSub_Number '$1'))} {<--config>} {(DQ ($ Id.VSub_DollarName '$config'))} {<--search>} {(DQ <'^'> ($ Id.VSub_DollarName '$name'))} ] redirects: [ (redir.Redir op: <Id.Redir_Great '2>'> fd: 2 arg_word: {</dev/null>} ) ] more_env: [ (env_pair name: LC_ALL val: {<C>} spids: [489] ) ] ) (command.Simple words: [ {<sed>} {<-ne>} { (DQ <'/^'> ($ Id.VSub_DollarName '$cur') <'/{s/^'> ($ Id.VSub_DollarName '$name') <':'> <Id.Lit_Other '\\'> <'([^ ]*'> <Id.Lit_Other '\\'> <') .*'> <Id.Lit_Other '$'> </> <Id.Lit_Other '\\'> <'1/;p}'> ) } ] more_env: [ (env_pair name: LC_ALL val: {<C>} spids: [517] ) ] ) ] negated: F ) ] ) ) } ] ) } spids: [484] ) ] ) ] spids: [444 461] ) ] else_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: [ (command.Pipeline children: [ (command.Simple words: [ {(DQ ($ Id.VSub_Number '$1'))} {<--config>} {(DQ ($ Id.VSub_DollarName '$config'))} {<--search>} {(DQ <'^'> ($ Id.VSub_DollarName '$cur'))} ] redirects: [ (redir.Redir op: <Id.Redir_Great '2>'> fd: 2 arg_word: {</dev/null>} ) ] more_env: [(env_pair name:LC_ALL val:{<C>} spids:[555])] ) (command.Simple words: [ {<sed>} {<-ne>} { (DQ <'/^'> ($ Id.VSub_DollarName '$cur') <'/{s/ .*'> <Id.Lit_Other '$'> <'//;p}'> ) } ] more_env: [(env_pair name:LC_ALL val:{<C>} spids:[583])] ) ] negated: F ) ] ) ) } ] ) } spids: [550] ) ] ) ] ) ] ) ) (C {<complete>} {<-F>} {<_slapt_src>} {<slapt-src>}) ] )