The command line is fed to a non-interactive instance of the shell (bash in my case) using the -c flag, then the standard output of the shell goes over a pipe (not a PTY or TTY) to an Emacs buffer.
I mention this because HN comments tend to conflate the Unix shell with the terminal/TTY interface. (An additional source of confusion or subtlety here is the fact that Emacs can communicate with the user using a terminal interface, so I will point out that my Emacs communicates with me over the Wayland display protocol.)
robthebrew•1h ago
whyandgrowth•1h ago