(command.CommandList children: [ (command.ShFunction name: _cached_bugs body: (command.BraceGroup children: [ (command.AndOr ops: [Id.Op_DAmp] children: [ (command.DBracket expr: (bool_expr.Unary op_id: Id.BoolUnary_d child: {($ Id.VSub_DollarName '$HOME') (/.devscripts_cache/bts)} ) ) (command.Pipeline children: [ (C {(find)} {($ Id.VSub_DollarName '$HOME') (/.devscripts_cache/bts)} {(-maxdepth)} {(1)} {(-name)} {(DQ ($ Id.VSub_DollarName '$cur') ('[0-9]*.html'))} {(-printf)} {(DQ ('%f') (Id.Lit_Other '\\') (n))} ) (C {(cut)} {(-d) (SQ (Token id:Id.Lit_Chars val:. span_id:57))} {(-f1)}) ] negated: F ) ] ) ] ) ) (command.ShFunction name: _src_packages_with_prefix body: (command.BraceGroup children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:ppn) op: assign_op.Equal rhs: { (braced_var_sub token: (Token id:Id.VSub_Name val:cur span_id:77) suffix_op: (suffix_op.Slice begin:(arith_expr.ArithWord w:{(Id.Lit_Digits 4)})) ) } spids: [75] ) ] ) (C {(compgen)} {(-P)} {(DQ ('src:'))} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( _xfunc apt-cache _apt_cache_sources "$ppn" )' span_id: 97 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$ppn'))} ) ] ) ) (command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _bts body: (command.BraceGroup children: [ (C {(local)} {(cur)} {(prev)} {(words)} {(cword)} {(split)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(_init_completion)} {(-s)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:136) ) ] ) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(show)} {(bugs)}] 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:155) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 157 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'release-critical RC from: tag:\n' span_id: 164 ) (Token id:Id.Lit_Chars val:' usertag:' span_id:165) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 176 ) command_list: (command.CommandList children: [(C {(_cached_bugs)})] ) ) } { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 182 ) command_list: (command.CommandList children: [(C {(_src_packages_with_prefix)})] ) ) } ] ) } spids: [154] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:191) arg_word: {(0)} ) ] spids: [148 151 196 -1] ) (case_arm pat_list: [{(select)}] 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:204) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 206 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'package: source: maintainer: submitter: severity: status: tag:\n' span_id: 213 ) (Token id: Id.Lit_Chars val: ' owner: correspondent: affects: bugs: users: archive:' span_id: 214 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [203] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:228) arg_word: {(0)} ) ] spids: [199 200 233 -1] ) (case_arm pat_list: [{(status)}] 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:241) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 243 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'file: fields: verbose' span_id: 250 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 261 ) command_list: (command.CommandList children: [(C {(_cached_bugs)})] ) ) } ] ) } spids: [240] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:270) arg_word: {(0)} ) ] spids: [236 237 275 -1] ) (case_arm pat_list: [{(block)} {(unblock)}] 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:285) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 287 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'by with' span_id: 294 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [284] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:308) arg_word: {(0)} ) ] spids: [278 281 313 -1] ) (case_arm pat_list: [{(severity)}] 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:321) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 323 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'wishlist minor normal important serious grave critical' span_id: 330 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [320] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:344) arg_word: {(0)} ) ] spids: [316 317 349 -1] ) (case_arm pat_list: [{(limit)}] 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:357) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 359 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'submitter date subject msgid package source tag severity owner\n' span_id: 366 ) (Token id:Id.Lit_Chars val:' affects archive' span_id:367) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [356] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:381) arg_word: {(0)} ) ] spids: [352 353 386 -1] ) (case_arm pat_list: [ {(clone)} {(Id.KW_Done done)} {(reopen)} {(archive)} {(unarchive)} {(retitle)} {(summary)} {(submitter)} {(found)} {(notfound)} {(fixed)} {(notfixed)} {(merge)} {(forcemerge)} {(unmerge)} {(claim)} {(unclaim)} {(forwarded)} {(notforwarded)} {(owner)} {(noowner)} {(subscribe)} {(unsubscribe)} {(reportspam)} {(spamreport)} {(affects)} {(usertag)} {(usertags)} {(reassign)} {(tag)} {(tags)} ] 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:462) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 464 ) command_list: (command.CommandList children: [(C {(_cached_bugs)})] ) ) } ] ) } spids: [461] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:473) arg_word: {(0)} ) ] spids: [389 458 478 -1] ) (case_arm pat_list: [{(package)}] 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:486) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 488 ) command_list: (command.CommandList children: [ (C {(_xfunc)} {(apt-cache)} {(_apt_cache_packages)}) ] ) ) } ] ) } spids: [485] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:501) arg_word: {(0)} ) ] spids: [481 482 506 -1] ) (case_arm pat_list: [{(cache)}] 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:514) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 516 ) command_list: (command.CommandList children: [ (C {(_xfunc)} {(apt-cache)} {(_apt_cache_packages)}) ] ) ) } { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 526 ) command_list: (command.CommandList children: [(C {(_src_packages_with_prefix)})] ) ) } { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 533 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'from: release-critical RC' span_id: 540 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [513] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:553) arg_word: {(0)} ) ] spids: [509 510 558 -1] ) (case_arm pat_list: [{(cleancache)}] 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:566) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 568 ) command_list: (command.CommandList children: [ (C {(_xfunc)} {(apt-cache)} {(_apt_cache_packages)}) ] ) ) } { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 578 ) command_list: (command.CommandList children: [(C {(_src_packages_with_prefix)})] ) ) } { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 585 ) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'from: tag: usertag: ALL' span_id: 592 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [565] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:605) arg_word: {(0)} ) ] spids: [561 562 610 -1] ) (case_arm pat_list: [{(user)}] 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:622))} spids: [621] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:627) arg_word: {(0)} ) ] spids: [613 614 632 -1] ) (case_arm pat_list: [{(Id.Lit_Other ':')}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:pos) op: assign_op.Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Minus left: (arith_expr.VarRef token: (Token id: Id.Lit_ArithVarLike val: COMP_CWORD span_id: 649 ) ) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 2)}) ) ) } spids: [647] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.Binary op_id: Id.BoolBinary_gt left: {($ Id.VSub_DollarName '$pos')} right: {(0)} ) right: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: COMP_WORDS span_id: 672 ) bracket_op: (bracket_op.ArrayIndex expr: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$pos')} ) ) ) ) } right: {(DQ (src))} ) ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:686) ) ] 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:692) words: [ { (command_sub left_token: (Token id: Id.Left_DollarParen val: '$(' span_id: 694 ) command_list: (command.CommandList children: [ (C {(_xfunc)} {(apt-cache)} {(_apt_cache_src_packages)} ) ] ) ) } ] ) } spids: [691] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:707) arg_word: {(0)} ) ] spids: [658 688] ) ] ) ] spids: [635 636 715 -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:727) arg_word: {(0)} ) ] ) (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:734) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:736) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '--offline --online --no-offline\n' span_id: 743 ) (Token id: Id.Lit_Chars val: ' --no-action --cache --no-cache --cache-mode --cache-delay --mbox\n' span_id: 744 ) (Token id: Id.Lit_Chars val: ' --mailreader --cc-addr --use-default-cc --no-use-default-cc\n' span_id: 745 ) (Token id: Id.Lit_Chars val: ' --sendmail --mutt --no-mutt --smtp-host --smtp-username\n' span_id: 746 ) (Token id: Id.Lit_Chars val: ' --smtp-helo --bts-server --force-refresh --no-force-refresh\n' span_id: 747 ) (Token id: Id.Lit_Chars val: ' --only-new --include-resolved --no-include-resolved --no-ack --ack\n' span_id: 748 ) (Token id: Id.Lit_Chars val: ' --interactive --force-interactive --no-interactive --quiet\n' span_id: 749 ) (Token id:Id.Lit_Chars val:' --no-conf --noconf\n' span_id:750) (Token id: Id.Lit_Chars val: ' show bugs select status clone done reopen archive unarchive retitle\n' span_id: 751 ) (Token id: Id.Lit_Chars val: ' summary submitter reassign found notfound fixed notfixed block unblock\n' span_id: 752 ) (Token id: Id.Lit_Chars val: ' merge forcemerge unmerge tag tags affects user usertag usertags claim\n' span_id: 753 ) (Token id: Id.Lit_Chars val: ' unclaim severity forwarded notforwarded package limit owner noowner\n' span_id: 754 ) (Token id: Id.Lit_Chars val: ' subscribe unsubscribe reportspam spamreport cache cleancache version\n' span_id: 755 ) (Token id:Id.Lit_Chars val:' help' span_id:756) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [733] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:770) arg_word: {(0)} ) ] ) ) (C {(complete)} {(-F)} {(_bts)} {(bts)}) ] ) ] )