Typing/pasting 'b' in wsl results in a quote(") appearing in terminal

As the title says, I am not able to type or paste 'b' in the terminal. What could be wrong with it? How can I fix this?

Posted Feb 15, 2020, 5:14 AM UTC

1119
BearyGoosey•

Is only for a single b, or does something like 'buy best bongos' become '"uy "est "ongos'

2
dmalharOP•

every b becomes a quote(") If I type echo buzzb

It bocomes "uzz" And prints ' uzz '

3
WSL_subreddit_mod19.10•

Looks like you may have messed up an alias

2
dmalharOP•

Ok. How do I fix it?

1
WSL_subreddit_mod19.10•

Have you modified .bashrc?

2
zoredache•

Maybe try and start a powershell/cmd session. Can you type a b in powershell/cmd without problems?

Then from PS/cmd see what happens if you wsl.exe -e /bin/sh or distro.exe run /bin/sh or distro.exe run /bin/bash --norc --noprofile? Can you type the b without any problems?

If you can start /bin/sh without any errors, that would point to something being broken in one of your configs.

2
dmalharOP•

When I tried wsl -e /bin/sh and wsl -e /bin/bash I can type 'b'

I did not use flags - - norc - - noprofile.

2
dmalharOP•

I can use 'b' everywhere else without issues

1
dmalharOP•

bashrc looks ok

1
welshboy14•

What about ~/.bash_aliases ?

1
dmalharOP•

I can't seem to find the file

1
welshboy14•

Then it's not that. Have to manually create the aliases file.

2
dmalharOP•

Ok

1
thunderbong•

Do you have some software installed which works like small macros? Like you type 'reg' and it turns it into 'Regards,' ? Maybe a AutoHotkey script or something?

1
dmalharOP•

No. Happens only in wsl, only for one user

1
jackluo923•

Are you using a 3rd party IME?

1
dmalharOP•

IME?

1
jackluo923•

In other words, have you changed the input language from 'US English' to something else? I.e UK english, Chinese english character mode, french ...etc. I had similar problem when using sougou 'input method editor' (IME) and have had similar problems and couple other ones as well when typing ASCII characters.

1
dmalharOP•

No. En-us, layout is en-us.

1