Because of this problem, good terminals require confirmation before pasting any strings that contain suspicious characters, e.g. carriage returns.
If you were to use I'd recommend sticking it behind a "if $TERM" guard so that it you don't end up surprised if you switch to a term that doesn't warn at some point ;)
¹ http://zsh.sourceforge.net/Doc/Release/Parameters.html#index...
In my experience, the advice "don't paste garbage into your terminal" is about as useful as "don't make mistakes." Sometimes it happens when I forget to hit shift on copying from a terminal, or accidentally holding it while copying from another window. Humans make mistakes. I like seatbelts even though they've never saved my life.