I save this shell script as test.sh and then run bash test.sh:
python3
When the prompt appears I press Ctrl+\ (in reality I have more complicated Python commands and Ctrl+C/Ctrl+D doesn't work). After that my terminal does not work properly and I cannot see anything I type. I have to run stty sane to get my terminal to work properly again.
Can anyone reproduce this and does anyone know the reason for this behaviour?
If it matters at all, I'm using Ubuntu 20.04 with python 3.8 and python 3.13 but I think everyone using bash is affected.