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
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
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.
When I tried wsl -e /bin/sh and wsl -e /bin/bash I can type 'b'
I did not use flags - - norc - - noprofile.
I can use 'b' everywhere else without issues
bashrc looks ok
What about ~/.bash_aliases ?
I can't seem to find the file
Then it's not that. Have to manually create the aliases file.
Ok
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?
No. Happens only in wsl, only for one user
Are you using a 3rd party IME?
IME?
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.
No. En-us, layout is en-us.
Is only for a single b, or does something like 'buy best bongos' become '"uy "est "ongos'
every b becomes a quote(") If I type echo buzzb
It bocomes "uzz" And prints ' uzz '
Looks like you may have messed up an alias
Ok. How do I fix it?
Have you modified .bashrc?