Interferon regulatory factor-2 is required for the establishment of the gut intraepithelial T cell compartment.