During the Civil War, Napoleonic Wars, and other wars in which linear formations were the norm, was essentially it a death sentence for a solider to go to the battlefield? Why did soldiers volunteer to stand right on front of a volley of muskets?

by [deleted]

Also, did the solders ever dig trenches so that they could have something to hide behind?

dandan_noodles