Armies foraging for supplies has been happening since the beginning of war.
Do you have examples of Sherman executing non-soldiers?
Big difference between foraging and stealing what isn't yours. It's like someone needing fire wood and going out finding branches/limps that have fallen off a tree vs. cutting down your neighbors tree to get the wood.