As dusk fell on the evening of July 18, 1863, about 600 men of the 54th Massachusetts Volunteer Infantry assembled on a beach near Charleston, South Carolina.