RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1672614 - Please consider making "bracketed paste mode" default on rhel8
Summary: Please consider making "bracketed paste mode" default on rhel8
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: setup
Version: 8.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Pavel Zhukov
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-05 12:20 UTC by Paulo Andrade
Modified: 2022-03-13 16:56 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-14 09:59:11 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1573899 1 None None None 2022-03-13 14:57:01 UTC
Red Hat Bugzilla 1573901 1 None None None 2022-03-13 14:57:04 UTC

Description Paulo Andrade 2019-02-05 12:20:37 UTC
People frequently copy&paste from the internet.

But commands can be embedded in the string being copied.
And after the paste it could be too late, and the pasted text could
even execute commands and hide again what it did.

See the examples at:
https://thejh.net/misc/website-terminal-copy-paste

And for more detailed description:
https://cirw.in/blog/bracketed-paste

To make it default, it would be required to add:
set enable-bracketed-paste on

to /etc/inputrc. Otherwise, users wanting this feature would need to
edit $HOME/.inputrc

Comment 1 Kamil Dudka 2019-02-05 12:40:13 UTC
Is this request specific for bash?

For example zsh already has bracketed paste mode enabled by default.  For ksh, the proposed change will have no effect, as I understand it.

Comment 2 Paulo Andrade 2019-02-05 13:02:07 UTC
It needs terminal capabilities. Available in xterm, konsole and gnome-terminal.
The change to /etc/inputrc would work for bash and any application that uses
readline.

Comment 3 Kamil Dudka 2019-02-05 13:37:23 UTC
Siteshwar, could you please comment on this?  Is it safe to enable bracketed paste mode in bash/readline by default in RHEL-8.1?

Comment 4 Siteshwar Vashisht 2019-02-06 14:15:44 UTC
As Paulo mentioned in comment 2, this will affect every application that uses readline. From bash perspective it should be safe to enable this mode, but I am not sure if original request is to set it for other applications too.

Comment 5 Paulo Andrade 2019-02-06 14:43:03 UTC
The request, started by the customer, is to enable it for everything
that uses readline.

I believe it is a good idea. One possible scenario would be someone
doing some tutorial, and cut&pasting commands from a web browser.
It would give enough time to see what would be executed, as it would
be required to press Enter.

Some users might get confused if they cut&paste a command, and expect
it to execute immediately, that is, if they cut&paste 'forcing' a newline.

Documentation about it (at least a KCS, that I can do) would be required.

Comment 8 Pavel Zhukov 2019-11-14 09:59:11 UTC
Hello,

It's too late to implement such wide change in released Red Hat Enterprise Linux  so it's being closed now as WONTFIX. Feel free to re-open the bug if there is a business reason to deliver a fix for this issue, and contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL:

https://access.redhat.com


Note You need to log in before you can comment on or make changes to this bug.