Blessings in an undershirt

Q: Is it permissible to recite blessings over food while wearing pants and an undershirt?
A: One can recite blessings over food, but one cannot daven the Shemoneh Esrei.