You are not logged in.

#1 2013-05-28 13:38:53

Markus00000
Member
Registered: 2011-03-27
Posts: 333

[SOLVED] Several keymaps broken in Bash

Update: This issue has disappeared.

At least the "us", "de-latin1" and "de-latin1-nodeadkeys" keymaps are broken for me in Bash. It's the same in X and in virtual consoles.

When I press "y", nothing happens. Only when I press another key the "y" is being printed followed by the other character I typed. It's like a dead key. Note that this happens even though "y" is placed differently in "us" and "de-latin1*".

In X the "y" is the only error I've found. In virtual consoles there are more keys that behave abnormally. In both de-latin1* keymaps "öäüß" all print different characters (foreign letters or punctuation).

  • Reloading the keymap with "loadkeys" in the virtual console didn't help.

  • Removing my .bashrc didn't help.

  • It doesn't matter if I set Bash as my default shell or if I open Bash from a zsh session.

  • A newly created user account experiences exactly the same behavior.

  • I haven't seen this error in other distributions on the same machine.

  • All three keymaps work fine in zsh, be it in X or in a virtual console.

I'm out of ideas on how to approach this issue.

Last edited by Markus00000 (2013-07-19 17:52:16)

Offline

#2 2013-05-28 13:45:58

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Several keymaps broken in Bash

Do you have a ".inputrc" file? If so, what are its contents? How about /etc/inputrc? I suspect that you may be using vi editing mode.

Last edited by jakobcreutzfeldt (2013-05-28 13:48:06)

Offline

#3 2013-05-28 13:55:58

Markus00000
Member
Registered: 2011-03-27
Posts: 333

Re: [SOLVED] Several keymaps broken in Bash

The new user account should have been in emacs-mode as I didn't change it. My regular user is using vi-mode.

I'm pretty sure I didn't change /etc/inputrc:

# do not bell on tab-completion
#set bell-style none

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on

$if mode=emacs

# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[7~": beginning-of-line
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word

# for rxvt
"\e[8~": end-of-line

# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line

# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif

The .inputrc from my regular user account shouldn't cause the newly created one to misbehave.

Any more info I can give?

Last edited by Markus00000 (2013-05-28 13:57:27)

Offline

#4 2013-05-28 15:12:43

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Several keymaps broken in Bash

True.
My guess is still that it's readline-related and not specifically bash-related.  Can I assume that you have the plain readline installed from the repos and not something modified (ABS or separate AUR package)?

Offline

#5 2013-05-28 15:24:49

Markus00000
Member
Registered: 2011-03-27
Posts: 333

Re: [SOLVED] Several keymaps broken in Bash

readline is installed from the repos like all "fundamental" packages.

Offline

#6 2013-05-28 15:52:08

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: [SOLVED] Several keymaps broken in Bash

OK one more thing to verify whether it's readline or bash (I think this should verify, at least). From zsh, try running a readline-based program like the python interpreter and see if the problem exists there.

Offline

#7 2013-05-28 20:01:43

Markus00000
Member
Registered: 2011-03-27
Posts: 333

Re: [SOLVED] Several keymaps broken in Bash

Great. The Python interpreter shows the same broken behavior.

So if it's readline… Did I break it? Is it only me or did I miss all the threads with people reporting the same issue?

Thanks for your help so far!

Offline

#8 2013-06-08 20:57:09

unrest
Member
From: Germany
Registered: 2010-06-23
Posts: 6
Website

Re: [SOLVED] Several keymaps broken in Bash

I have a similar issue with de-latin1-nodeadkeys on de_DE.UTF-8. Everything's fine in X, but not in the shell - e.g. I cannot type the "€" there.
Any clues as to what might be broken?

/usr/share/kbd/keymaps/i386/include/euro*.map.gz all have the "euro" for the E-key.


To thine own self be true.

Offline

#9 2013-06-16 19:19:17

unrest
Member
From: Germany
Registered: 2010-06-23
Posts: 6
Website

Re: [SOLVED] Several keymaps broken in Bash

*bump*


To thine own self be true.

Offline

#10 2013-06-17 10:07:12

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Several keymaps broken in Bash


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB