(CommandList children: [ (AndOr children: [ (FuncDef name: _postsuper body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs:(LhsName name:cur) op:Equal spids:[13]) (assign_pair lhs:(LhsName name:prev) op:Equal spids:[15]) (assign_pair lhs:(LhsName name:words) op:Equal spids:[17]) (assign_pair lhs:(LhsName name:cword) op:Equal spids:[19]) ] spids: [11] ) (AndOr children: [(C {(_init_completion)}) (ControlFlow token:<ControlFlow_Return return>)] op_id: Op_DPipe ) (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs:(LhsName name:pval) op:Equal spids:[32]) (assign_pair lhs:(LhsName name:len) op:Equal spids:[34]) (assign_pair lhs:(LhsName name:idx) op:Equal spids:[36]) ] spids: [30] ) (Case to_match: {($ VSub_Name '$prev')} arms: [ (case_arm pat_list: [{(-c)}] action: [ (C {(_filedir)} {(-d)}) (ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [47 48 61 16777215] ) (case_arm pat_list: [{(-) (Lit_Other '[') (dr) (Lit_Other ']')}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:len) op: Equal rhs: { (BracedVarSub token: <VSub_Name cur> prefix_op: VSub_Pound spids: [72 75] ) } spids: [71] ) ] spids: [71] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:idx) op:Equal rhs:{(0)} spids:[78])] spids: [78] ) (ForEach iter_name: pval iter_words: [ {(ALL)} { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (SimpleCommand words: [{(mailq)}] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [94] ) ] ) (C {(sed)} {(-e)} {(SQ <'1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* !].*$//'>)} ) ] negated: False ) ] ) left_token: <Left_CommandSub '$('> spids: [90 109] ) } ] do_arg_iter: False body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_Name '$cur'))} right: { (DQ (BracedVarSub token: <VSub_Name pval> suffix_op: (Slice begin: (ArithWord w:{(Lit_Digits 0)}) length: (ArithWord w: {($ VSub_Name '$len')} ) ) spids: [126 132] ) ) } ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(COMPREPLY) (Lit_Other '[') ($ VSub_Name '$idx') (Lit_Other ']') (Lit_Other '=') ($ VSub_Name '$pval') } ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:idx) op: Equal rhs: { (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithWord w:{($ VSub_Name '$idx')}) right: (ArithWord w:{(Lit_Digits 1)}) ) spids: [150 155] ) } spids: [149] ) ] spids: [149] ) ] spids: [16777215 138] ) ] spids: [16777215 158] ) ] spids: [112 161] ) spids: [87 110] ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [64 68 169 16777215] ) (case_arm pat_list: [{(-h)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:len) op: Equal rhs: { (BracedVarSub token: <VSub_Name cur> prefix_op: VSub_Pound spids: [177 180] ) } spids: [176] ) ] spids: [176] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:idx) op:Equal rhs:{(0)} spids:[183])] spids: [183] ) (ForEach iter_name: pval iter_words: [ {(ALL)} { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (SimpleCommand words: [{(mailq)}] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [199] ) ] ) (C {(sed)} {(-e)} { (SQ < '1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* ].*$//; /!$/d' > ) } ) ] negated: False ) ] ) left_token: <Left_CommandSub '$('> spids: [195 214] ) } ] do_arg_iter: False body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_Name '$cur'))} right: { (DQ (BracedVarSub token: <VSub_Name pval> suffix_op: (Slice begin: (ArithWord w:{(Lit_Digits 0)}) length: (ArithWord w: {($ VSub_Name '$len')} ) ) spids: [231 237] ) ) } ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(COMPREPLY) (Lit_Other '[') ($ VSub_Name '$idx') (Lit_Other ']') (Lit_Other '=') ($ VSub_Name '$pval') } ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:idx) op: Equal rhs: { (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithWord w:{($ VSub_Name '$idx')}) right: (ArithWord w:{(Lit_Digits 1)}) ) spids: [255 260] ) } spids: [254] ) ] spids: [254] ) ] spids: [16777215 243] ) ] spids: [16777215 263] ) ] spids: [217 266] ) spids: [192 215] ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [172 173 274 16777215] ) (case_arm pat_list: [{(-H)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:len) op: Equal rhs: { (BracedVarSub token: <VSub_Name cur> prefix_op: VSub_Pound spids: [282 285] ) } spids: [281] ) ] spids: [281] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:idx) op:Equal rhs:{(0)} spids:[288])] spids: [288] ) (ForEach iter_name: pval iter_words: [ {(ALL)} { (CommandSubPart command_list: (CommandList children: [ (Pipeline children: [ (SimpleCommand words: [{(mailq)}] redirects: [ (Redir op_id: Redir_Great fd: 2 arg_word: {(/dev/null)} spids: [304] ) ] ) (C {(sed)} {(-e)} { (SQ < '1d; $d; /^[^0-9A-Z]/d; /^$/d; /^[0-9A-Z]*[* ]/d; s/!.*$//' > ) } ) ] negated: False ) ] ) left_token: <Left_CommandSub '$('> spids: [300 319] ) } ] do_arg_iter: False body: (DoGroup children: [ (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_Name '$cur'))} right: { (DQ (BracedVarSub token: <VSub_Name pval> suffix_op: (Slice begin: (ArithWord w:{(Lit_Digits 0)}) length: (ArithWord w: {($ VSub_Name '$len')} ) ) spids: [336 342] ) ) } ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(COMPREPLY) (Lit_Other '[') ($ VSub_Name '$idx') (Lit_Other ']') (Lit_Other '=') ($ VSub_Name '$pval') } ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:idx) op: Equal rhs: { (ArithSubPart anode: (ArithBinary op_id: Arith_Plus left: (ArithWord w:{($ VSub_Name '$idx')}) right: (ArithWord w:{(Lit_Digits 1)}) ) spids: [360 365] ) } spids: [359] ) ] spids: [359] ) ] spids: [16777215 348] ) ] spids: [16777215 368] ) ] spids: [322 371] ) spids: [297 320] ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [277 278 379 16777215] ) ] spids: [40 44 382] ) (If arms: [ (if_arm cond: [ (Sentence child: (DBracket expr: (BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_Name '$cur')} right: {(-) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:COMPREPLY) op: Equal rhs: { (ArrayLiteralPart words: [ { (CommandSubPart command_list: (CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _parse_help "$1" )'>)} {(--)} {(DQ ($ VSub_Name '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [406 422] ) } ] ) } spids: [403] ) ] spids: [403] ) (ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [16777215 400] ) ] spids: [16777215 432] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:COMPREPLY) op: Equal rhs: { (ArrayLiteralPart words: [ { (CommandSubPart command_list: (CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'hold incoming active deferred'>)} {(--)} {(DQ ($ VSub_Name '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [439 455] ) } ] ) } spids: [436] ) ] spids: [436] ) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_postsuper)} {(postsuper)}) ] op_id: Op_DAmp ) ] )