[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bracketed paste on 4.4.20(1)-release

From: Chet Ramey
Subject: Re: bracketed paste on 4.4.20(1)-release
Date: Fri, 6 May 2022 15:50:37 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.8.1

On 5/6/22 3:16 PM, Sergei Gerasenko wrote:

I’m seeing strange behavior in bash on CentOS 8. The version of bash there is 
4.4.20(1). The 4.2.46(2) version on CentOS 7 doesn’t have this problem. The 
versions of readline are 6.2 and 7.0 respectively. The problem is that when 
vi-mode is on and bracketed paste is enabled in .bashrc with:

bind 'set enable-bracketed-paste on’

… pasting while in the INSERT mode will result in: a bell + “(arg: 200)”

I suspect this is because the bracketed paste escape sequence has 200 in it. Namely, 
"ESC [ 200 ~”. Is this a known bug and is there a workaround? The readline 
version on C8 is readline-7.0.

I can't reproduce this using bash-4.4.23 on macOS or RHEL 7.

It looks like the key sequence that begins a bracketed paste isn't bound to
the readline command that reads the pasted text. That happens by default in
bash-4.4 as distributed; maybe CentOS disables it for some reason.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]