In the settings of the Terminal app, in the advanced tab, there is an option to "Paste newlines as carriage returns" which is enabled by default.
What is this good for?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
What is it good for?
Sometimes you want to paste exactly what you've copied into something...say a document you're editing in
vi and want to preserve it exactly as it is.
Or, you could want to past the
CR so it executes the command.
Perhaps the default action to pastes exactly what was copied makes more sense than altering a paste buffer before the application processes the clipboard.
This is very useful in some shells (zsh and bash work, but not tcsh for example) so that if you accidentally paste a whole lot of text, it is not immediately executed as a long series of commands. You can edit what is pasted or just abort using Ctrl-C.
I also like it for copying a rectangular subselection of what's on the clipboard by dragging with the option key.