(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _postmap body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[13]) op: Equal spids: [13] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[15]) op: Equal spids: [15] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[17]) op: Equal spids: [17] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[19]) op: Equal spids: [19] ) ] spids: [11] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.Case to_match: {($ VSub_DollarName '$prev')} arms: [ (case_arm pat_list: [{(-c)}] action: [ (C {(_filedir)} {(-d)}) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [37 38 51 16777215] ) (case_arm pat_list: [{(-) (Lit_Other '[') (dq) (Lit_Other ']')}] action: [(command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)})] spids: [54 58 66 16777215] ) ] spids: [30 34 69] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_DollarName '$cur')} right: {(-) (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[90]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'$( _parse_usage "$1" )'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [93 109] ) } ] ) } spids: [90] ) ] spids: [90] ) (command.ControlFlow token: <ControlFlow_Return return> arg_word: {(0)} ) ] spids: [16777215 87] ) ] spids: [16777215 119] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: {(Lit_Other '*') (Lit_Other ':') (Lit_Other '*')} ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(compopt)} {(-o)} {(filenames)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[150]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-f)} {(--)} { (DQ (word_part.BracedVarSub token: <VSub_Name cur> suffix_op: (suffix_op.StringUnary op_id: VOp1_Pound arg_word: {('*:')} ) spids: [162 166] ) ) } ) ] ) left_token: <Left_CommandSub '$('> spids: [153 169] ) } ] ) } spids: [150] ) ] spids: [150] ) ] spids: [16777215 140] ) ] else_action: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:len spids:[179]) op: Equal rhs: { (word_part.BracedVarSub token: <VSub_Name cur> prefix_op: VSub_Pound spids: [180 183] ) } spids: [179] ) (assign_pair lhs: (lhs_expr.LhsName name:idx spids:[185]) op: Equal rhs: {(0)} spids: [185] ) (assign_pair lhs: (lhs_expr.LhsName name:pval spids:[188]) op: Equal spids: [188] ) ] spids: [177] ) (command.ForEach iter_name: pval iter_words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (command.SimpleCommand words: [{(/usr/sbin/postconf)} {(-m)}] redirects: [ (redir.Redir op: <Redir_Great '2>'> fd: 2 arg_word: {(/dev/null)} ) ] ) ] ) left_token: <Left_CommandSub '$('> spids: [197 206] ) } ] do_arg_iter: F body: (command.DoGroup children: [ (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {(DQ ($ VSub_DollarName '$cur'))} right: { (DQ (word_part.BracedVarSub token: <VSub_Name pval> suffix_op: (suffix_op.Slice begin: (arith_expr.ArithWord w:{(Lit_Digits 0)}) length: (arith_expr.ArithWord w: {($ VSub_DollarName '$len')} ) ) spids: [223 229] ) ) } ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsIndexedName name: COMPREPLY index: (arith_expr.ArithWord w:{($ VSub_DollarName '$idx')}) spids: [238] ) op: Equal rhs: {(DQ ($ VSub_DollarName '$pval') (':'))} spids: [238] ) ] spids: [238] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:idx spids:[247]) op: Equal rhs: { (word_part.ArithSubPart anode: (arith_expr.ArithBinary op_id: Arith_Plus left: (arith_expr.ArithWord w: {($ VSub_DollarName '$idx')} ) right: (arith_expr.ArithWord w:{(Lit_Digits 1)}) ) spids: [248 253] ) } spids: [247] ) ] spids: [247] ) ] spids: [16777215 235] ) ] spids: [16777215 256] ) ] spids: [209 259] ) spids: [196 207] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_eq left: {($ VSub_DollarName '$idx')} right: {(0)} ) ) terminator: <Op_Semi ';'> ) ] action: [ (C {(compopt)} {(-o)} {(filenames)}) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[285]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-f)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [288 300] ) } ] ) } spids: [285] ) ] spids: [285] ) ] spids: [16777215 275] ) ] spids: [16777215 305] ) ] spids: [174 308] ) (command.ControlFlow token:<ControlFlow_Return return> arg_word:{(0)}) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_postmap)} {(postmap)} {(postalias)}) ] )