he commanded a unit during the battle of shiloh