(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _rrdtool body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[14]) op: Equal spids: [14] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[16]) op: Equal spids: [16] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[18]) op: Equal spids: [18] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[20]) op: Equal spids: [20] ) ] spids: [12] ) (command.AndOr ops: [Op_DPipe] children: [ (C {(_init_completion)}) (command.ControlFlow token:<ControlFlow_Return return>) ] ) (command.If arms: [ (if_arm cond: [ (command.Sentence child: (command.DBracket expr: (bool_expr.BoolBinary op_id: BoolBinary_eq left: { (word_part.BracedVarSub token: <VSub_Name words> prefix_op: VSub_Pound bracket_op: (bracket_op.WholeArray op_id:Lit_At) spids: [35 41] ) } right: {(2)} ) ) terminator: <Op_Semi ';'> ) ] action: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:COMPREPLY spids:[53]) op: Equal rhs: { (word_part.ArrayLiteralPart words: [ { (word_part.CommandSubPart command_list: (command.CommandList children: [ (C {(compgen)} {(-W)} { (SQ <'create update updatev graph dump restore\n'> < ' last lastupdate first info fetch tune resize xport' > ) } {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [56 73] ) } ] ) } spids: [53] ) ] spids: [53] ) ] spids: [16777215 50] ) ] else_action: [(C {(_filedir)} {(rrd)})] spids: [78 86] ) ] spids: [9] ) spids: [4 8] ) (C {(complete)} {(-F)} {(_rrdtool)} {(rrdtool)}) ] )