Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

9
  • paste into notepad first, to see what you have, then if it is OK go ahead to paste it into your application Commented May 11, 2015 at 12:17
  • 2
    in bash run the command sleep 999999 then do the paste if it looks ok. the sleep command does not read the lines and they are discarded when you press ctrl+c. Commented May 11, 2015 at 12:22
  • 3
    Relevant: security.stackexchange.com/q/39118 Commented May 11, 2015 at 12:27
  • 3
    Next version of bash will have support for bracketed paste, zsh already has via 3rd party plugin. Commented May 11, 2015 at 12:32
  • 1
    @Otheus, printf '\e[?2004h' in most xterm-like terminal emulators enables a bracketed-paste mode where the terminal brackets the pasted text so that applications can detect where the paste start and where it ends. xterm also support another mode with \e[?2005h where all pasted characters are prefixed with ^V (understood by many applications and the tty line discipline as litteral-next). Commented May 11, 2015 at 13:44