Copy & Paste vs the Terminal
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Copy, Past & the Terminal

Please try the demo site!

When coping something from a Webbrowser (or any other untrusted source) to your terminal you might end up executing code without your knowledge.

To prevent this:

  • update to readline 7.0+
  • add the following line to you ~/.inputrc
    set enable-bracketed-paste On

Dokumentation of enable-bracketed-paste.