You are not logged in.

#1 2012-03-16 20:32:16

drrossum
Member
From: Chicago
Registered: 2009-02-24
Posts: 83

bash vi mode screws up in newest version 4.2.024

Hi,

I have the following problem with bash:
in vi mode things work fine initially, but after some time the vi mode screws up, especially the 'c' command no longer means 'clear' but something weird like 'paste something somewhere in the line'.

I've typed 1000000 commands in vi-mode over the years, this has never happened before.

Does anyone else have this problem?  Is this a bug or a new feature that I don't know about?

Thanks,
Daan

Offline

#2 2012-03-16 20:34:32

drrossum
Member
From: Chicago
Registered: 2009-02-24
Posts: 83

Re: bash vi mode screws up in newest version 4.2.024

As a workaround, I start a new shell 'bash' when it happens.

It's really annoying. I'll downgrade to 4.2.020 to see if that solves it for now.

Offline

#3 2012-03-16 20:53:04

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: bash vi mode screws up in newest version 4.2.024

Does it help if you run the command "reset"?

Offline

#4 2012-03-16 20:53:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: bash vi mode screws up in newest version 4.2.024

Pardon my ignorance, but I've used 'c' in conjunction with 'w or 'e' ('change word') and it still works. 'c' alone doesn't do a thing.
If something does not work, I think it's readline's fault https://wiki.archlinux.org/index.php/Readline not bash's.

I'll keep an eye for unexpected behavior.

Offline

#5 2012-03-16 21:26:55

drrossum
Member
From: Chicago
Registered: 2009-02-24
Posts: 83

Re: bash vi mode screws up in newest version 4.2.024

@brebs: no reset doesn't work

@karol: What I meant with having typed 1000000 commands is 'I know how vi-mode works' :-)

Readline hasn't been updated since Nov 2011.  I would definitely have noticed that before.

Last edited by drrossum (2012-03-16 21:27:19)

Offline

Board footer

Powered by FluxBB