Interleukin-17-producing gammadelta T cells selectively expand in response to pathogen products and environmental signals.