I need to run an interactive Bash instance in a separated process in Python with it’s own dedicated TTY (I can’t use pexpect). I used this code snippet I commonly see used in similar programs: But when I run it I get the following output: Strace of the run shows some errors: The code snippet seems pretty straightforward, is Bash