I’m using Finnish keyboard layout which maps AltGr+Space to non-breaking space (NBSP, U+00A0). I’m happy with this in general but I find that I often accidentally write NBSP instead of normal space after pipe symbol (written with AltGr+< with Finnish keyboard) while using bash command line. I guess this is caused by the fact that I need to hold AltGr while typing the pipe and release it before hitting space. And when I miss the release of AltGr I end up with invisible typo on the command line.
I know that I can disable NBSP but I would prefer disabling it only after pipe character or on the bash command line or
readline level. Is there any simple way to do this without modifying source code of bash,
readline or my terminal emulator (