The pentose phosphate pathway is a metabolic redox sensor and regulates transcription during the antioxidant response.