(command.AndOr ops: [Id.Op_DAmp] children: [ (command.ShFunction name: _postsuper body: (command.BraceGroup children: [ (C {(local)} {(cur)} {(prev)} {(words)} {(cword)}) (command.AndOr ops: [Id.Op_DPipe] children: [ (C {(_init_completion)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:26) ) ] ) (C {(local)} {(pval)} {(len)} {(idx)}) (command.Case to_match: {($ Id.VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-c)}] action: [ (C {(_filedir)} {(-d)}) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:56) arg_word: {(0)} ) ] spids: [47 48 61 -1] ) (case_arm pat_list: [{(-) (Id.Lit_LBracket '[') (dr) (Id.Lit_RBracket ']')}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:len) op: assign_op.Equal rhs: { (braced_var_sub token: (Token id:Id.VSub_Name val:cur span_id:74) prefix_op: (Id.VSub_Pound) ) } spids: [71] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:idx) op: assign_op.Equal rhs: {(0)} spids: [78] ) ] ) (command.ForEach iter_name: pval iter_words: [ {(ALL)} { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:90) command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.Simple words: [{(mailq)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:94) fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-e)} { (SQ (Token id: Id.Lit_Chars val: '1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* !].*$//' span_id: 106 ) ) } ) ] negated: F ) ] ) ) } ] do_arg_iter: F 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: {(DQ ($ Id.VSub_DollarName '$cur'))} right: { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: pval span_id: 127 ) suffix_op: (suffix_op.Slice begin: (arith_expr.ArithWord w: {(Id.Lit_Digits 0)} ) length: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$len')} ) ) ) ) } ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:136) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.IndexedName name: COMPREPLY index: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$idx')} ) ) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$pval')} spids: [141] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:idx) op: assign_op.Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Plus left: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$idx')} ) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) ) } spids: [149] ) ] ) ] spids: [115 138] ) ] ) ] ) ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:164) arg_word: {(0)} ) ] spids: [64 68 169 -1] ) (case_arm pat_list: [{(-h)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:len) op: assign_op.Equal rhs: { (braced_var_sub token: (Token id:Id.VSub_Name val:cur span_id:179) prefix_op: (Id.VSub_Pound) ) } spids: [176] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:idx) op: assign_op.Equal rhs: {(0)} spids: [183] ) ] ) (command.ForEach iter_name: pval iter_words: [ {(ALL)} { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:195) command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.Simple words: [{(mailq)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:199) fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-e)} { (SQ (Token id: Id.Lit_Chars val: '1d; $d; /^[^0-9A-Z]/d; /^$/d; s/[* ].*$//; /!$/d' span_id: 211 ) ) } ) ] negated: F ) ] ) ) } ] do_arg_iter: F 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: {(DQ ($ Id.VSub_DollarName '$cur'))} right: { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: pval span_id: 232 ) suffix_op: (suffix_op.Slice begin: (arith_expr.ArithWord w: {(Id.Lit_Digits 0)} ) length: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$len')} ) ) ) ) } ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:241) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.IndexedName name: COMPREPLY index: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$idx')} ) ) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$pval')} spids: [246] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:idx) op: assign_op.Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Plus left: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$idx')} ) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) ) } spids: [254] ) ] ) ] spids: [220 243] ) ] ) ] ) ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:269) arg_word: {(0)} ) ] spids: [172 173 274 -1] ) (case_arm pat_list: [{(-H)}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:len) op: assign_op.Equal rhs: { (braced_var_sub token: (Token id:Id.VSub_Name val:cur span_id:284) prefix_op: (Id.VSub_Pound) ) } spids: [281] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:idx) op: assign_op.Equal rhs: {(0)} spids: [288] ) ] ) (command.ForEach iter_name: pval iter_words: [ {(ALL)} { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:300) command_list: (command.CommandList children: [ (command.Pipeline children: [ (command.Simple words: [{(mailq)}] redirects: [ (redir.Redir op: (Token id:Id.Redir_Great val:'2>' span_id:304) fd: 2 arg_word: {(/dev/null)} ) ] ) (C {(sed)} {(-e)} { (SQ (Token id: Id.Lit_Chars val: '1d; $d; /^[^0-9A-Z]/d; /^$/d; /^[0-9A-Z]*[* ]/d; s/!.*$//' span_id: 316 ) ) } ) ] negated: F ) ] ) ) } ] do_arg_iter: F 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: {(DQ ($ Id.VSub_DollarName '$cur'))} right: { (DQ (braced_var_sub token: (Token id: Id.VSub_Name val: pval span_id: 337 ) suffix_op: (suffix_op.Slice begin: (arith_expr.ArithWord w: {(Id.Lit_Digits 0)} ) length: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$len')} ) ) ) ) } ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:346) ) ] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.IndexedName name: COMPREPLY index: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$idx')} ) ) op: assign_op.Equal rhs: {($ Id.VSub_DollarName '$pval')} spids: [351] ) ] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name name:idx) op: assign_op.Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Plus left: (arith_expr.ArithWord w: {($ Id.VSub_DollarName '$idx')} ) right: (arith_expr.ArithWord w:{(Id.Lit_Digits 1)}) ) ) } spids: [359] ) ] ) ] spids: [325 348] ) ] ) ] ) ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:374) arg_word: {(0)} ) ] spids: [277 278 379 -1] ) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.Binary op_id: Id.BoolBinary_GlobDEqual left: {($ Id.VSub_DollarName '$cur')} right: {(-) (Id.Lit_Other '*')} ) ) terminator: (Token id:Id.Op_Semi val:';' span_id:398) ) ] 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:404) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:406) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: '$( _parse_help "$1" )' span_id: 413 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [403] ) ] ) (command.ControlFlow token: (Token id:Id.ControlFlow_Return val:return span_id:427) arg_word: {(0)} ) ] spids: [386 400] ) ] ) (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:437) words: [ { (command_sub left_token: (Token id:Id.Left_DollarParen val:'$(' span_id:439) command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ (Token id: Id.Lit_Chars val: 'hold incoming active deferred' span_id: 446 ) ) } {(--)} {(DQ ($ Id.VSub_DollarName '$cur'))} ) ] ) ) } ] ) } spids: [436] ) ] ) ] ) ) (C {(complete)} {(-F)} {(_postsuper)} {(postsuper)}) ] )