Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16211

pasting in bracketed-paste mode breaks reverse-i-search

From gentoo_eshoes@tutanota.com
Newsgroups gnu.bash.bug
Subject pasting in bracketed-paste mode breaks reverse-i-search
Date 2020-04-21 03:32 +0200
Message-ID <mailman.854.1587432782.3066.bug-bash@gnu.org> (permalink)
References <M5PMSNi--3-2@tutanota.com>

Show all headers | View raw


Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -pipe -march=native -Wno-trigraphs -fno-schedule-insns2 -fno-delete-null-pointer-checks -mtune=native -fomit-frame-pointer -O2 -D_FORTIFY_SOURCE=2 -DQT_FORCE_ASSERTS -ggdb -rdynamic -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc' -DSYS_BASH_LOGOUT='/etc/bash.bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS -fstack-protector-strong -fno-omit-frame-pointer -ftrack-macro-expansion=2 -ggdb -fvar-tracking-assignments -O2 -Wno-parentheses -Wno-format-security
uname output: Linux Z575 5.6.5-gf07f08b09f05 #91 SMP PREEMPT Sat Apr 18 03:21:35 CEST 2020 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 5.0
Patch Level: 16
Release Status: maint

this bashbug doesn't show commit/branch that was used... it's 'devel' commit commit 96a2ec128b24f328a86645ef2ceaa5d4a96515ed Date:   Fri Apr 17 15:43:10 2020 -0400

Description:
pasting while in reverse-i-search undoes it
Repeat-By:
$ bind 'set enable-bracketed-paste on'
select character 'c' with the mouse, so it can be pasted via pressing MMB or shift+insert
press Ctrl+R to enter (reverse-i-search)`': 
paste, (either by pressing MMB or shift+insert)
the reverse-i-search prompt goes away and you're back to regular prompt, having just 'c' pasted there: $ c


Mitigation:
1. $ bind 'set enable-bracketed-paste off'
2. press Ctrl+R to enter (reverse-i-search)`': 
3. paste, (either by pressing MMB or shift+insert)
it worked:
(reverse-i-search)`c': bind 'set enable-bracketed-paste off'

Fix:no idea; takes a genius to fix this.

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

pasting in bracketed-paste mode  breaks reverse-i-search gentoo_eshoes@tutanota.com - 2020-04-21 03:32 +0200

csiph-web