(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _pgrep 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)} {(-d)} {(--delimiter)} {(-g)} {(--pgroup)} {(-J)} {(-M)} {(-N)} {(-s)} {(--session)} {(-t)} {(--terminal)} {(-T)} {(-z)} ] action: [(command.ControlFlow token:<ControlFlow_Return return>)] spids: [37 64 70 16777215] ) (case_arm pat_list: [{(--signal)}] action: [(C {(_signals)}) (command.ControlFlow token:<ControlFlow_Return return>)] spids: [73 74 83 16777215] ) (case_arm pat_list: [{(-F)} {(--pidfile)}] action: [(C {(_filedir)}) (command.ControlFlow token:<ControlFlow_Return return>)] spids: [86 89 98 16777215] ) (case_arm pat_list: [{(-G)} {(--group)}] action: [(C {(_gids)}) (command.ControlFlow token:<ControlFlow_Return return>)] spids: [101 104 113 16777215] ) (case_arm pat_list: [{(-j)}] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[120]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(SQ <'any none'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [123 139] ) } ] ) } spids: [120] ) ] spids: [120] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [116 117 147 16777215] ) (case_arm pat_list: [{(-P)} {(--parent)}] action: [(C {(_pids)}) (command.ControlFlow token:<ControlFlow_Return return>)] spids: [150 153 162 16777215] ) (case_arm pat_list: [{(-u)} {(--euid)} {(-U)} {(--uid)}] action: [(C {(_uids)}) (command.ControlFlow token:<ControlFlow_Return return>)] spids: [165 172 181 16777215] ) ] spids: [30 34 184] ) (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_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:help spids:[207]) op: Equal rhs: {(SQ <'$( _parse_help "$1" )'>)} spids: [207] ) ] spids: [205] ) (command.AndOr ops: [Op_DPipe] children: [ (command.DBracket expr: (bool_expr.WordTest w:{($ VSub_DollarName '$help')}) ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:help spids:[221]) op: Equal rhs: { (SQ <'$( "$1" --usage 2>&1 |\n'> < ' sed -e "s/\\[-signal\\]//" -e "s/\\[-SIGNAL\\]//" |\n' > <' _parse_usage - )'> ) } spids: [221] ) ] spids: [221] ) ] ) (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[229]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} {(DQ ($ VSub_DollarName '$help'))} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [232 248] ) } ] ) } spids: [229] ) ] spids: [229] ) (command.AndOr ops: [Op_DAmp] children: [ (command.DBracket expr: (bool_expr.LogicalAnd left: (bool_expr.BoolBinary op_id: BoolBinary_eq left: {($ VSub_DollarName '$cword')} right: {(1)} ) right: (bool_expr.BoolBinary op_id: BoolBinary_GlobDEqual left: {($ VSub_Number '$1')} right: {(Lit_Other '*') (pkill)} ) ) ) (C {(_signals)} {(-)}) ] ) (command.ControlFlow token:<ControlFlow_Return return>) ] spids: [16777215 202] ) ] spids: [16777215 282] ) (C {(_pnames)} {(-s)}) ] spids: [8] ) spids: [4 7] ) (C {(complete)} {(-F)} {(_pgrep)} {(pgrep)} {(pkill)}) ] )