(command.AndOr ops: [Op_DAmp] children: [ (command.FuncDef name: _look body: (command.BraceGroup children: [ (command.Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:cur spids:[20]) op: Equal spids: [20] ) (assign_pair lhs: (lhs_expr.LhsName name:prev spids:[22]) op: Equal spids: [22] ) (assign_pair lhs: (lhs_expr.LhsName name:words spids:[24]) op: Equal spids: [24] ) (assign_pair lhs: (lhs_expr.LhsName name:cword spids:[26]) op: Equal spids: [26] ) ] spids: [18] ) (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: {($ VSub_DollarName '$cword')} right: {(1)} ) ) 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 <'$(look "$cur" 2>/dev/null)'>)} {(--)} {(DQ ($ VSub_DollarName '$cur'))} ) ] ) left_token: <Left_CommandSub '$('> spids: [56 72] ) } ] ) } spids: [53] ) ] spids: [53] ) ] spids: [16777215 50] ) ] spids: [16777215 77] ) ] spids: [15] ) spids: [11 14] ) (C {(complete)} {(-F)} {(_look)} {(-o)} {(default)} {(look)}) ] )