Facile, selective, and regiocontrolled synthesis of oxazolines and oxazoles mediated by ZnI2 and FeCl3.