Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-59645

bracketed-paste disabled on RHEL 8 still causes issue when pasting

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • rhel-8.10
    • bash
    • None
    • No
    • Moderate
    • rhel-sst-cs-plumbers
    • ssg_core_services
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Trying to copy and paste content on terminal, add extra character

      How reproducible is this bug?:

      bash-4.4.20-5.el8.x86_64

      Steps to reproduce

      You need to have two vm RHEL 8 and RHEL 9

      Below are the commands that you need to execute inorder to reproduce the issue.

       

      Take ssh of RHEL 8 system and execute below commands
      [root@rhel8 ~ ]# read something
      test
      
      [root@rhel8 ~ ]# bind -V|grep bracketed
      enable-bracketed-paste is set to `off'
      
      [root@rhel8 ~ ]# ssh root@rhel9
       root@rhel9's password:
      Last login: Fri Sep 20 06:52:40 2024
      
      [root@rhel9 ~ ]# bind -V|grep bracketed
      enable-bracketed-paste is set to `on'
      
      [root@rhel9 ~]# reboot
      
      [root@rhel9 ~]# Connection to 192.168.122.123 closed by remote host.
      Connection to 192.168.122.123 closed.
      
      [user@rhel8 ~ ]# bind -V|grep bracketed
      enable-bracketed-paste is set to `off'    <-- however, this is off... but in reality is on
      
      [root@rhel8 ~ ]# read something
      ^[[200~test^[[201~ 
      
      [root@rhel8 ~]# bash   <-----I also tried opening new session 
      
      [root@rhel8 ~]# read something
      ^[[200~test^[[201~
      

      Workaround

      Workaround 1: Close the ssh session and open a new ssh connection
      Workaround 2: Execute below command 
                         # printf '\e[?2004l'

      Expected results

      Copy and paste should work fine

      Actual results

      Adds additional characters

              rhn-support-svashish Siteshwar Vashisht
              rhn-support-prjagtap Pradeep Jagtap
              Siteshwar Vashisht Siteshwar Vashisht
              Karel Volný Karel Volný
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: