Debian Bug report logs - #838437
bash: (readline) regression in the behaviour of ^W in vi-mode

version graph

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

Reported by: Gian Piero Carrubba <gpiero@rm-rf.it>

Date: Wed, 21 Sep 2016 07:15:02 UTC

Severity: minor

Found in versions bash/4.4-1, bash/4.4-2

Forwarded to https://lists.gnu.org/archive/html/bug-bash/2017-03/msg00029.html

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#838437; Package bash. (Wed, 21 Sep 2016 07:15:05 GMT) (full text, mbox, link).


Acknowledgement sent to Gian Piero Carrubba <gpiero@rm-rf.it>:
New Bug report received and forwarded. Copy sent to Matthias Klose <doko@debian.org>. (Wed, 21 Sep 2016 07:15:05 GMT) (full text, mbox, link).


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

From: Gian Piero Carrubba <gpiero@rm-rf.it>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash: (readline) regression in the behaviour of ^W in vi-mode
Date: Wed, 21 Sep 2016 09:05:09 +0200
Package: bash
Version: 4.4-1
Severity: minor

Dear Maintainer,

bash 4.4-1 contains an allegedly regression wrt handling of ^W
(Control-w) in vi-mode.
After having red
https://lists.gnu.org/archive/html/bug-bash/2016-09/msg00018.html, the
obvious suspect seems to be

> 2.  New Features in Readline
...
> m. The default binding for ^W in vi mode now uses word boundaries
> specified by Posix (vi-unix-word-rubout is bindable command name).

I could not find any documentation about 'vi-unix-word-rubout'. Anyway
I'm not tagging this issue as 'upstream' as I haven't checked.

$ set -o vi
$ echo REMOVE maintain

With bash-4.3-15 I can recall and modify the line positioning the cursor
on the space between 'REMOVE' and 'maintain' and using ^W:

Esc, k, e, e, l, i, Ctrl-w 

With bash-4.4-1 this doesn't work (does nothing), and I have to position
the cursor on the start of the next word:

Esc, k, w, w, i, Ctrl-w, Ctrl-w

Anyway, it DOES work if I try to remove only part of the word (e.g.:
leaving the last E):

Esc, k, e, e, i, Ctrl-w

Where it really becomes nasty is in presence of non alphanum chars:

$ echo REMOVE .maintain

Positioning the cursor on the dot succeeds in removing the space but
then stop working:

Esc, k, w, w, i, Ctrl-w, Ctrl-w

OTOH, positioning the cursor on the char following the dot works (but in
this case removes space and dot together as if there are no word
boundaries):

Esc, k, w, w, w, i, Ctrl-w, Ctrl-w

Trying to modify a line like

$ ls /tmp/ /var/

with ^W can be frustrating depending on where you start from.

As from my limited tests, this issue does not seem affected by locale
settings.

Thanks,
Gian Piero.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages bash depends on:
ii  base-files   9.6
ii  dash         0.5.8-2.3
ii  debianutils  4.8
ii  libc6        2.24-3
ii  libtinfo5    6.0+20160910-1

Versions of packages bash recommends:
ii  bash-completion  1:2.1-4.3

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, philipp.marek@linbit.com, Matthias Klose <doko@debian.org>:
Bug#838437; Package bash. (Mon, 03 Oct 2016 05:39:03 GMT) (full text, mbox, link).


Acknowledgement sent to "Ph. Marek" <philipp.marek@linbit.com>:
Extra info received and forwarded to list. Copy sent to philipp.marek@linbit.com, Matthias Klose <doko@debian.org>. (Mon, 03 Oct 2016 05:39:03 GMT) (full text, mbox, link).


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

From: "Ph. Marek" <philipp.marek@linbit.com>
To: Debian Bug Tracking System <838437@bugs.debian.org>
Subject: Re: bash: (readline) regression in the behaviour of ^W in vi-mode
Date: Mon, 3 Oct 2016 07:25:37 +0200
Package: bash
Version: 4.4-1
Followup-For: Bug #838437

Seconded. This is a nasty regression; apart from breaking local editing 
speed, it gets really bad on long-latency lines (eg. via mosh).


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.7.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bash depends on:
ii  base-files   9.6
ii  dash         0.5.8-2.3
ii  debianutils  4.8
ii  libc6        2.23-5
ii  libtinfo5    6.0+20160625-1

Versions of packages bash recommends:
ii  bash-completion  1:2.1-4.3

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information



Information forwarded to debian-bugs-dist@lists.debian.org, Matthias Klose <doko@debian.org>:
Bug#838437; Package bash. (Sat, 26 Nov 2016 20:03:08 GMT) (full text, mbox, link).


Acknowledgement sent to Gian Piero Carrubba <gpiero@rm-rf.it>:
Extra info received and forwarded to list. Copy sent to Matthias Klose <doko@debian.org>. (Sat, 26 Nov 2016 20:03:08 GMT) (full text, mbox, link).


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

From: Gian Piero Carrubba <gpiero@rm-rf.it>
To: Debian Bug Tracking System <838437@bugs.debian.org>
Cc: philipp.marek@linbit.com
Subject: Re: bash: (readline) regression in the behaviour of ^W in vi-mode
Date: Sat, 26 Nov 2016 20:52:05 +0100
Package: bash
Version: 4.4-2
Followup-For: Bug #838437

According to [0], as a workaround you can re-enable the 4.3 behaviour by 
putting the following lines in your $HOME/.inputrc file (can confirm it 
works on my boxes):

set bind-tty-special-chars Off
set keymap vi-insert
"\C-w": unix-word-rubout

The downside is, obviously, the loss of the POSIX semantics for word 
boundaries.

Ciao,
Gian Piero.

[0] http://lists.gnu.org/archive/html/bug-bash/2016-11/msg00024.html

-- System Information:
Debian Release: stretch/sid
 APT prefers unstable
 APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.8.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages bash depends on:
ii  base-files   9.6
ii  dash         0.5.8-2.3
ii  debianutils  4.8.1
ii  libc6        2.24-7
ii  libtinfo5    6.0+20160917-1

Versions of packages bash recommends:
ii  bash-completion  1:2.1-4.3

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information



Set Bug forwarded-to-address to 'https://lists.gnu.org/archive/html/bug-bash/2017-03/msg00029.html'. Request was from Gian Piero Carrubba <gpiero@rm-rf.it> to control@bugs.debian.org. (Sun, 05 Mar 2017 20:48:06 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Dec 6 06:53:27 2023; Machine Name: buxtehude

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.