In the days before modern supply lines soldiers probably ate a whole lot of things without being terribly choosy about how they got their nourishment.
The use of helmets as cookpots, buckets, wash basins, etc no doubt goes back to the very first ones devised. On a slight tangent, I recently learned the story of
Wheeler Lipes. It is a splendid example of ingenuity and the ability to repurpose the materials at hand to meet an emergency situation. Makes Apollo 13 look mundane in comparison. (
More detail)