(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _apt_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>) ] ) (C {<local>} {<special>} {<i>}) (command.ForExpr init: (arith_expr.BinaryAssign op_id: Id.Arith_Equal left: <Id.Lit_ArithVarLike i> right: {<Id.Lit_Digits 0>} ) cond: (arith_expr.Binary op_id: Id.Arith_Less 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>} ) ) update: (arith_expr.UnaryAssign op_id:Id.Node_PostDPlus 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: [ {<install>} {<remove>} {<autoremove>} {<purge>} {<source>} {<build-dep>} {<download>} {<changelog>} ] ) } ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:special) op: assign_op.Equal rhs: { (braced_var_sub token: <Id.VSub_Name words> bracket_op: (bracket_op.ArrayIndex expr: <Id.Lit_ArithVarLike i> ) ) } spids: [108] ) ] ) ] spids: [71 105] ) ] ) ] ) ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_n child: {($ Id.VSub_DollarName '$special')} ) ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.Case to_match: {($ Id.VSub_DollarName '$special')} arms: [ (case_arm pat_list: [{<remove>} {<autoremove>} {<purge>}] action: [ (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_f child: {<'/etc/debian_version'>} ) ) 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 {<_xfunc>} {<dpkg>} {<_comp_dpkg_installed_packages>} {($ Id.VSub_DollarName '$cur')} ) ) } ] ) } spids: [171] ) ] ) ] spids: [153 164] ) ] else_action: [(C {<_xfunc>} {<rpm>} {<_rpm_installed_packages>})] ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [145 150 213 -1] ) (case_arm pat_list: [{<source>}] 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.Simple words: [ {<apt-cache>} {<--no-generate>} {<pkgnames>} {(DQ ($ Id.VSub_DollarName '$cur'))} ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] do_fork: T ) ) } { (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (C {<apt-cache>} {<dumpavail>}) (C {<command>} {<grep>} { (DQ <'^Source: '> ($ Id.VSub_DollarName '$cur') ) } ) (C {<sort>} {<-u>}) (C {<cut>} {<-f2>} {<-d> (DQ <' '>)}) ] negated: F ) ) } ] ) } spids: [220] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [216 217 289 -1] ) (case_arm pat_list: [{<Id.Lit_Star '*'>}] 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.Simple words: [ {<apt-cache>} {<--no-generate>} {<pkgnames>} {(DQ ($ Id.VSub_DollarName '$cur'))} ] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] do_fork: T ) ) } ] ) } spids: [296] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [292 293 327 -1] ) ] ) ] spids: [124 135] ) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{<-c>} {<--config-file>}] action: [ (C {<_filedir>}) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [344 347 358 -1] ) (case_arm pat_list: [{<-t>} {<--target-release>} {<--default-release>}] 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: [ (C {<apt-cache>} {<policy>}) (C {<command>} {<grep>} { (DQ <'release.o=Debian,a='> ($ Id.VSub_DollarName '$cur') ) } ) (C {<sed>} {<-e>} { (DQ <'s/.*a='> <Id.Lit_BadBackslash '\\'> <'('> <Id.Lit_BadBackslash '\\'> <'w*'> <Id.Lit_BadBackslash '\\'> <').*/'> <Id.Lit_BadBackslash '\\'> <'1/'> ) } ) (command.Simple words: [{<uniq>}] redirects: [ (redir op: <Id.Redir_Great '2>'> loc: (redir_loc.Fd fd:2) arg: {<'/dev/null'>} ) ] do_fork: T ) ] negated: F ) ) } ] ) } spids: [369] ) ] ) (command.ControlFlow token: <Id.ControlFlow_Return return> arg_word: {<0>} ) ] spids: [361 366 428 -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 <'-d -f -h -v -m -q -s -y -u -t -b -c -o\n'> < ' --download-only --fix-broken --help --version --ignore-missing\n' > <' --fix-missing --no-download --quiet --simulate --just-print\n'> < ' --dry-run --recon --no-act --yes --assume-yes --show-upgraded\n' > <' --only-source --compile --build --ignore-hold --target-release\n'> < ' --no-upgrade --force-yes --print-uris --purge --reinstall\n' > <' --list-cleanup --default-release --trivial-only --no-remove\n'> < ' --diff-only --no-install-recommends --tar-only --config-file\n' > <' --option --auto-remove'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [454] ) ] ) ] spids: [435 451] ) ] 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 '$('> child: (C {<compgen>} {<-W>} { (SQ <'update upgrade dselect-upgrade\n'> < ' dist-upgrade install remove purge source build-dep download\n' > <' changelog check clean autoclean autoremove'> ) } {<-->} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ) } ] ) } spids: [489] ) ] ) ] ) (command.ControlFlow token:<Id.ControlFlow_Return return> arg_word:{<0>}) ] ) ) (C {<complete>} {<-F>} {<_apt_get>} {<apt-get>}) ] )