If you type any number of non-English Unicode characters, e.g. “öäüčđž” and then use your backspace key to delete those, then immediately start typing any of valid commands, the result will be quite unexpected:
$ ls -al
bash: $'\303\266\303\244\303\274\304ls': command not found
Only parts of each Unicode character are deleted due to the setting stty erase ^?.
I tried to set stty erase ^H, by using Ctrl+V+backspace, but that didn’t resolve my issue. Any ideas?
The link you shared was a wonderful trace, since that’s exactly what’s happening in my case: “a terminal (emulator) which understands multibyte encodings (UTF-8), but at the same time - the shell doesn’t”.
Unfortunately, I couldn’t resolve my issue with the solution proposed over there. My configs below:
$ cat /etc/X11/xorg.conf.d/00-keyboard.conf
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Option "XkbLayout" "hr"
Option "XkbModel" "pc105"
Just an idea I got while skimming this topic.
I don’t see any info mentioned about which Terminal emulator you use. Could there be a difference in how they behave, like settings etc?
Konsole I believe is standard in Plasma (it’s what I use anyway) but it can be replaced if one has other needs/interests for features that only exist in other emulators.
Just a thought.
I did mention it here - I use the default profile in Konsole, Yakuake and my IDE’s terminal emulators (Kate and VSCodium).
I never changed the global settings in /etc. Speaking of ~/.config, same things happen when I sudo su which completely has its own default settings - I could always recreate this issue on Manjaro. Hence I doubt I’m the only one facing this issue, since the sample in this thread is too small.
as of now/currently - the default profile is read only and is using zsh
your installation is likely from before that (to me rather silly) change - so you still can have Bash without “contorsions”
(it involves creating a new profile and setting this as default …)
I totally believe you!
Why would you …
it’s not quite accurate (IMO) sudo su -
will get root’s environment sudo su
I could not.
And, as you know from your research, similar problems are rarely reported and working advice is hard or impossible to find.
But I don’t have installed any IDE.
the kind of plot twist you might have had earlier
when you had backed up and then deleted all your settings in ~/.config
like I suggested
the issue is as close to be resolved as it can get I recon …