This was never an issue when shells were first invented, because there were no mice. You could not select a region of the screen with the mouse, so there were no cut-and-paste errors like these.
If I want repeat an earlier command, I use the up-arrow, or bang:
!a repeats the last command that began with an "a".
replies(1):