Terminal should prompt for confirmation before pasting text containing newlines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-terminal (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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
ProcVersionSign
Uname: Linux 4.4.0-134-generic x86_64
NonfreeKernelMo
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)
Obviously this should be fixed upstream, but until then, a decent distribution would patch it to fix such an idiotic behaviour.