(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _slapt_get body: (BraceGroup children: [ (C {<local>} {<cur>} {<prev>} {<words>} {<cword>}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {<_init_completion>}) (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: [39 42 51 -1] ) (case_arm pat_list: [{<--retry>} {<--search>}] action: [(command.ControlFlow token:<Id.ControlFlow_Return return>)] spids: [54 57 67 -1] ) ] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (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 '$('> child: (C {<compgen>} {<-W>} {(SQ <'$( _parse_help "$1" --help )'>)} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [93] ) ] ) (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: [74 90] ) ] ) (C {<local>} {<i>} {<t>}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: <Id.Lit_ArithVarLike i> right: (arith_expr.Binary op_id: Id.Arith_Minus left: { (braced_var_sub token: <Id.VSub_Name words> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } right: {<Id.Lit_Digits 1>} ) ) cond: (arith_expr.Binary op_id: Id.Arith_Great left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 0>} ) update: (arith_expr.UnaryAssign op_id:Id.Node_PostDMinus child:<Id.Lit_ArithVarLike i>) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (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: <Id.Lit_ArithVarLike i> ) ) } right: {<--show>} ) ) 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: [216] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [195 213] ) (if_arm cond: (condition.Shell commands: [ (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: <Id.Lit_ArithVarLike i> ) ) } right: {<-> (word_part.ExtGlob op: <Id.ExtGlob_At '@('> arms: [{<i>} {<-install>}] ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:t) op: assign_op.Equal rhs: {(DQ <avl>)} spids: [251] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [225 248] ) (if_arm cond: (condition.Shell commands: [ (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: <Id.Lit_ArithVarLike i> ) ) } right: {<--install-set>} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:t) op: assign_op.Equal rhs: {(DQ <set>)} spids: [281] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [260 278] ) (if_arm cond: (condition.Shell commands: [ (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: <Id.Lit_ArithVarLike i> ) ) } right: {<--> (word_part.ExtGlob op: <Id.ExtGlob_At '@('> arms: [{<remove>} {<filelist>}] ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:t) op: assign_op.Equal rhs: {(DQ <ins>)} spids: [316] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [290 313] ) ] ) ] ) ) (C {<local>} {<Id.Lit_VarLike 'config='> (DQ <'/etc/slapt-get/slapt-getrc'>)}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: <Id.Lit_ArithVarLike i> right: (arith_expr.Binary op_id: Id.Arith_Minus left: { (braced_var_sub token: <Id.VSub_Name words> prefix_op: (Id.VSub_Pound) bracket_op: (bracket_op.WholeArray op_id:Id.Lit_At) ) } right: {<Id.Lit_Digits 1>} ) ) cond: (arith_expr.Binary op_id: Id.Arith_Great left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 0>} ) update: (arith_expr.UnaryAssign op_id:Id.Node_PostDMinus child:<Id.Lit_ArithVarLike i>) body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (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: <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: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 1>} ) ) ) ) } spids: [405] ) ] ) (C {<__expand_tilde_by_ref>} {<config>}) (command.ControlFlow token: <Id.ControlFlow_Break break> ) ] spids: [379 402] ) ] ) ] ) ) (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.Case to_match: {($ Id.VSub_DollarName '$t')} arms: [ (case_arm pat_list: [{<all>}] action: [ (C {<local>} {<Id.Lit_VarLike 'name='> (braced_var_sub token: <Id.VSub_Name cur> suffix_op: (suffix_op.Unary tok: <Id.VOp1_DPercent '%%'> arg_word: {<-> <Id.Lit_Other '*'>} ) ) } ) (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 '$('> child: (command.Pipeline children: [ (command.Simple words: [ {(DQ ($ Id.VSub_Number '$1'))} {<-c>} {(DQ ($ Id.VSub_DollarName '$config'))} {<--search>} {(DQ <'^'> ($ Id.VSub_DollarName '$name'))} ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] more_env: [(env_pair name:LC_ALL val:{<C>} spids:[486])] do_fork: T ) (command.Simple words: [ {<sed>} {<-ne>} { (DQ <'/^'> ($ Id.VSub_DollarName '$cur') <'/{s/ .*'> <Id.Lit_Dollar '$'> <'//;p}'> ) } ] more_env: [(env_pair name:LC_ALL val:{<C>} spids:[514])] do_fork: T ) ] negated: F ) ) } ] ) } spids: [481] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [455 456 537 -1] ) (case_arm pat_list: [{<avl>}] 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 '$('> child: (command.Pipeline children: [ (command.Simple words: [ {(DQ ($ Id.VSub_Number '$1'))} {<-c>} {(DQ ($ Id.VSub_DollarName '$config'))} {<--available>} ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] more_env: [(env_pair name:LC_ALL val:{<C>} spids:[552])] do_fork: T ) (command.Simple words: [ {<sed>} {<-ne>} { (DQ <'/^'> ($ Id.VSub_DollarName '$cur') <'/{s/ .*'> <Id.Lit_Dollar '$'> <'//;p}'> ) } ] more_env: [(env_pair name:LC_ALL val:{<C>} spids:[575])] do_fork: T ) ] negated: F ) ) } ] ) } spids: [547] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [540 541 598 -1] ) (case_arm pat_list: [{<ins>}] 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 '$('> child: (command.CommandList children: [ (command.Sentence child: (C {<cd>} {<'/var/log/packages'>}) terminator: <Id.Op_Semi _> ) (C {<compgen>} {<-f>} {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [608] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [601 602 636 -1] ) (case_arm pat_list: [{<set>}] 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 '$('> child: (C {<compgen>} {<-W>} { (SQ <'a ap d e f k kde kdei l n t tcl x\n'> <' xap xfce y'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [646] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return>) ] spids: [639 640 674 -1] ) ] ) ] ) ) (C {<complete>} {<-F>} {<_slapt_get>} {<slapt-get>}) ] )