Public bug reported: Steps to reproduce: - copy some texts that includes newline characters - paste it (usually accidentally) in a terminal
Expected behavior: Before pasting something that will be executed (because newline characters will be processed as if hitting the Enter key), the terminal should prompt for confirmation. OR at least, what you paste should be only displayed and not actually processed until you press the Enter key. THIS SHOULD BE F***ING OBVIOUS, I can't believe I have to report this. Observed behavior: blindly pastes everything and executes each line as a command. THIS IS F***ING DANGEROUS. It's too easy to forget to copy what you actually meant to copy, or forget you copied something else afterwards, and accidentally paste a random block of text of several lines which usually isn't even shell commands, but some of them can actually happen to be valid commands that actually do stuff. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: gnome-terminal 3.18.3-1ubuntu1 ProcVersionSignature: Ubuntu 4.4.0-134.160-generic 4.4.140 Uname: Linux 4.4.0-134-generic x86_64 NonfreeKernelModules: nvidia_uvm nvidia ApportVersion: 2.20.1-0ubuntu2.18 Architecture: amd64 CurrentDesktop: Unity Date: Fri Sep 7 18:32:28 2018 InstallationDate: Installed on 2013-10-11 (1791 days ago) InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424) SourcePackage: gnome-terminal UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: gnome-terminal (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug third-party-packages xenial -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1791337 Title: Terminal should prompt for confirmation before pasting text containing newlines To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1791337/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs