Debian Bug report logs - #972344
bash automatically selects the copied text

version graph

Package: bash; Maintainer for bash is Matthias Klose <doko@debian.org>; Source for bash is src:bash (PTS, buildd, popcon).

Reported by: Antonio <antdev66@gmail.com>

Date: Fri, 16 Oct 2020 15:12:01 UTC

Severity: normal

Found in version bash/5.1~rc1-2

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#972344; Package bash. (Fri, 16 Oct 2020 15:12:03 GMT) (full text, mbox, link).


Acknowledgement sent to Antonio <antdev66@gmail.com>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>. (Fri, 16 Oct 2020 15:12:03 GMT) (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Antonio <antdev66@gmail.com>
To: submit@bugs.debian.org
Subject: bash automatically selects the copied text
Date: Fri, 16 Oct 2020 17:07:57 +0200
[Message part 1 (text/plain, inline)]
Package: bash
Version: 5.1~rc1-2
Severity: normal

Dear Maintainer,
after updating bash to version 5.1 ~ rc1-2 I noticed a new behavior: when
you paste a text it is automatically selected.
This however creates confusion as on plasma / konsole as the text is
confused with the cursor (block), placed at the end of the word.
How can I disable this new feature?
Thank you,
Antonio De Lorenzi
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#972344; Package bash. (Mon, 19 Oct 2020 17:51:02 GMT) (full text, mbox, link).


Acknowledgement sent to Matthias Klose <doko@debian.org>:
Extra info received and forwarded to list. (Mon, 19 Oct 2020 17:51:02 GMT) (full text, mbox, link).


Message #10 received at 972344@bugs.debian.org (full text, mbox, reply):

From: Matthias Klose <doko@debian.org>
To: Antonio <antdev66@gmail.com>, 972344@bugs.debian.org
Subject: Re: Bug#972344: bash automatically selects the copied text
Date: Mon, 19 Oct 2020 19:48:00 +0200
On 10/16/20 5:07 PM, Antonio wrote:
> Package: bash
> Version: 5.1~rc1-2
> Severity: normal
> 
> Dear Maintainer,
> after updating bash to version 5.1 ~ rc1-2 I noticed a new behavior: when
> you paste a text it is automatically selected.
> This however creates confusion as on plasma / konsole as the text is
> confused with the cursor (block), placed at the end of the word.
> How can I disable this new feature?

please could you forward that issue upstream, using the bashbug script?

Thanks, Matthias



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#972344; Package bash. (Mon, 02 Nov 2020 15:00:02 GMT) (full text, mbox, link).


Acknowledgement sent to Tomas Janousek <tomi@nomi.cz>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Mon, 02 Nov 2020 15:00:02 GMT) (full text, mbox, link).


Message #15 received at 972344@bugs.debian.org (full text, mbox, reply):

From: Tomas Janousek <tomi@nomi.cz>
To: Antonio <antdev66@gmail.com>, 972344@bugs.debian.org
Subject: Re: Bug#972344: bash automatically selects the copied text
Date: Mon, 2 Nov 2020 14:50:57 +0000
Hi,

On Fri, Oct 16, 2020 at 05:07:57PM +0200, Antonio wrote:
> after updating bash to version 5.1 ~ rc1-2 I noticed a new behavior: when
> you paste a text it is automatically selected.
> This however creates confusion as on plasma / konsole as the text is
> confused with the cursor (block), placed at the end of the word.
> How can I disable this new feature?

This seems to be related to this bash changelog entry:

f. New active mark and face feature: when enabled, it will highlight the text
   inserted by a bracketed paste (the `active region') and the text found by
   incremental and non-incremental history searches.

There's also this in CWRU/changes that seems related:

- rl_activate_mark,rl_deactivate_mark,rl_mark_is_active_p,
  rl_keep_mark_active: new functions to manage an active region. We
  don't do anything with an active region yet. Part of a large patch
  for active regions from Daniel Colascione <dancol@google.com>
  originally back in 3/2018

Unfortunately it seems there is no way to not enable it.

Might indeed be a good idea to ping upstream and/or Daniel Colascione about
this.

-- 
Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, https://work.lisk.in/



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#972344; Package bash. (Mon, 02 Nov 2020 15:03:03 GMT) (full text, mbox, link).


Acknowledgement sent to Tomas Janousek <tomi@nomi.cz>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Mon, 02 Nov 2020 15:03:03 GMT) (full text, mbox, link).


Message #20 received at 972344@bugs.debian.org (full text, mbox, reply):

From: Tomas Janousek <tomi@nomi.cz>
To: Antonio <antdev66@gmail.com>, 972344@bugs.debian.org
Subject: Re: Bug#972344: bash automatically selects the copied text
Date: Mon, 2 Nov 2020 15:00:27 +0000
Hi again,

On Mon, Nov 02, 2020 at 02:50:58PM +0000, Tomas Janousek wrote:
> Might indeed be a good idea to ping upstream and/or Daniel Colascione about
> this.

Oh, turns out someone already did: https://lists.gnu.org/archive/html/bug-bash/2020-10/msg00067.html
Chet answered that it can be disabled by disabling bracketed paste: https://lists.gnu.org/archive/html/bug-bash/2020-10/msg00082.html
but I don't think that is a good option, so I'll try to persuade him to make
this configurable separately.

-- 
Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, https://work.lisk.in/



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#972344; Package bash. (Wed, 13 Jan 2021 04:48:04 GMT) (full text, mbox, link).


Acknowledgement sent to 王昊然 <msl0000023508@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Wed, 13 Jan 2021 04:48:04 GMT) (full text, mbox, link).


Message #25 received at 972344@bugs.debian.org (full text, mbox, reply):

From: 王昊然 <msl0000023508@gmail.com>
To: 972344@bugs.debian.org
Subject: Re: Bug#972344: bash automatically selects the copied text
Date: Wed, 13 Jan 2021 12:44:38 +0800
I also found this feature causes confusing in some terminals. However
disabling bracketed paste for BASH worked good enough for me: just
adding 'bind "set enable-bracketed-paste off"' into /etc/bash.bashrc.



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#972344; Package bash. (Thu, 14 Jan 2021 13:03:04 GMT) (full text, mbox, link).


Acknowledgement sent to 王昊然 <msl0000023508@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Thu, 14 Jan 2021 13:03:04 GMT) (full text, mbox, link).


Message #30 received at 972344@bugs.debian.org (full text, mbox, reply):

From: 王昊然 <msl0000023508@gmail.com>
To: 972344@bugs.debian.org
Subject: Re: Bug#972344: bash automatically selects the copied text
Date: Thu, 14 Jan 2021 20:59:39 +0800
I just found another issue with this new BASH/Readline bug/feature.
Even with 'bind "set enable-bracketed-paste off"', BASH 5.1 still
behaving differently from previous versions: if pasted text contains
new lines, BASH 5.1 would still buffering the pasted text, rather than
evaluating the pasted text as commands immediately as I expected. This
behavior is very annoying for me because I'm very used to repeat some
commands quickly by copy-pasting them.



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#972344; Package bash. (Thu, 14 Jan 2021 13:09:03 GMT) (full text, mbox, link).


Acknowledgement sent to 王昊然 <msl0000023508@gmail.com>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Thu, 14 Jan 2021 13:09:03 GMT) (full text, mbox, link).


Message #35 received at 972344@bugs.debian.org (full text, mbox, reply):

From: 王昊然 <msl0000023508@gmail.com>
To: 972344@bugs.debian.org
Subject: Re: Bug#972344: bash automatically selects the copied text
Date: Thu, 14 Jan 2021 21:06:09 +0800
While adding 'enable-bracketed-paste off' into inputrc appears fixed
this issue, no idea why it didn't fully work with bashrc only.

2021-01-14 20:59 GMT+08:00, 王昊然 <msl0000023508@gmail.com>:
> I just found another issue with this new BASH/Readline bug/feature.
> Even with 'bind "set enable-bracketed-paste off"', BASH 5.1 still
> behaving differently from previous versions: if pasted text contains
> new lines, BASH 5.1 would still buffering the pasted text, rather than
> evaluating the pasted text as commands immediately as I expected. This
> behavior is very annoying for me because I'm very used to repeat some
> commands quickly by copy-pasting them.
>



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Dec 6 07:12:28 2023; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.