18

My bash does not know the letter p. zsh does though.

When I type a p in bash, it simply ignores it, and even pasting in text that contains a p will result in no p in the pasted text. This behavior is the same across terminals (I tried, urxvt, st and tty)

I tried commenting out everything in my ~/.profile, ~/.bash_profile and ~/.bashrc, the problem still persists. Using root though, everything is fine. My /root/.profile, /root/.bash_profile and /root/.bashrc are symlinked to the files in my home directory. So the problem can't originate there, but it's got to be something that is different for root and my user.

I use a custom keyboard layout, but when I switch to standard US keyboard layout, the problem still persists as well.

Just to rule this out as well: I do not use gnome.

Where else can I look?

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232
maddingl
  • 594

1 Answers1

19

Besides the files you mentioned, there could be .inputrc in effect that changes the interpretation of the p key.

Edit: maddingl (the OP) confirms:

That's it. I had left the following in there:

# fix not working delete-key in st, see https://git.suckless.org/st/file/FAQ.html
# line 51
printf '\033[?1h\033=' >/dev/tty

That line does fix the delete-key in st, but it also causes the described problem. I went back to urxvt anyways, so for me it does not matter. If the reader is using st and wants both working p and delete, see the above mentioned link for more info.

choroba
  • 47,233
  • 4
    @maddingl I don't think your edit was warrented. First of all: don't write edits using first-person. Edits should fix errors or add small amounts of information. IMHO instead of editing this answer you could have added your own answer instead. – Giacomo Alzetta Jun 07 '19 at 10:54
  • 4
    @GiacomoAlzetta: Let's not treat new users with conflicting demands. maddingl was asked to do it this this commend on the question above. – user000001 Jun 07 '19 at 19:07
  • I think the comment was suggesting that @maddlingl write his own answer, but it was written unclearly. – Barmar Jun 07 '19 at 22:08
  • @Barmar Yes, that's what I meant. If a user edits someone else's answer/question they should do so in an "integrated manner", not like "Hey, different user here. This is what I did ...". At that point they should simply write their own answer and add a reference to the other answer. – Giacomo Alzetta Jun 10 '19 at 07:05
  • @GiacomoAlzetta please don't encourage people to write new posts inappropriately. Answers are for new answers not further clarification of existing answers. – Philip Couling Jun 10 '19 at 09:06