Chemoselective efficient synthesis of functionalized β-oxonitriles through cyanomethylation of Weinreb amides.