2

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.

3
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. Commented Aug 28, 2025 at 9:32
  • Welcome to Superuser. Do you actually want to know if someone else had this problem or even what the reason for it is, or do you want to know if someone else knows how to FIX this problem? I'm guessing it's the last one. The first edit I'd suggest is that you make what you want from us specific and clear: "How do I fix this?". Second, what OS/distro/flavor/version and what Python version are you running? Finally, what do the logs say and what else have you researched or done trying to solve this? EDIT your post to focus and clarify it. Don't add info here in comments. Commented Aug 28, 2025 at 13:51
  • yes, I actually want to know exactly what I asked, and also if any other distros/python versions are affected, which from my experience with these sort of issues, I'm guessing everyone using bash is affected. I don't know how to get the logs, please help me. I don't want to just know how to fix it. I want to know the exact root cause of the problem. Commented Sep 1, 2025 at 5:46

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.